Module: Espresso::Model::InstanceMethods
- Defined in:
- lib/espresso/model.rb
Instance Method Summary collapse
-
#to_s ⇒ Object
String representation of model, based on Model’s #name_field.
Instance Method Details
#to_s ⇒ Object
String representation of model, based on Model’s #name_field
27 28 29 |
# File 'lib/espresso/model.rb', line 27 def to_s send(self.class.name_field) end |