Module: SelectableAttrRails::DbLoadable::Entry

Defined in:
lib/selectable_attr_rails/db_loadable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#name_from_dbObject

Returns the value of attribute name_from_db.



12
13
14
# File 'lib/selectable_attr_rails/db_loadable.rb', line 12

def name_from_db
  @name_from_db
end

Instance Method Details

#nameObject



13
14
15
# File 'lib/selectable_attr_rails/db_loadable.rb', line 13

def name
  @name_from_db || super
end