Module: Kudos::Uuidable

Extended by:
ActiveSupport::Concern
Included in:
Achievement, AchievementGroup
Defined in:
app/models/concerns/kudos/uuidable.rb

Instance Method Summary collapse

Instance Method Details

#generate_uuidObject



11
12
13
# File 'app/models/concerns/kudos/uuidable.rb', line 11

def generate_uuid
  self.uuid ||= SecureRandom.uuid
end