Class: AwesomeTranslations::CacheDatabaseGenerator::Group

Inherits:
BazaModels::Model
  • Object
show all
Defined in:
lib/awesome_translations/cache_database_generator/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#at_groupObject



22
23
24
# File 'lib/awesome_translations/cache_database_generator/group.rb', line 22

def at_group
  @at_group ||= AwesomeTranslations::Group.find_by(handler: at_handler, id: identifier)
end

Instance Method Details

#at_handlerObject



18
19
20
# File 'lib/awesome_translations/cache_database_generator/group.rb', line 18

def at_handler
  @at_handler ||= handler.at_handler
end

#to_paramObject



26
27
28
# File 'lib/awesome_translations/cache_database_generator/group.rb', line 26

def to_param
  identifier
end