Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/usesguid/active_record_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def usesguid(options = {})
class_eval do
set_primary_key options[:column] if options[:column]

before_create :assign_guid
before_validation :assign_guid

# Give this record a guid id. Public method so people can call it before save if necessary.
def assign_guid
Expand All @@ -49,4 +49,4 @@ def assign_guid
end

end
end
end