Class: Track
- Inherits:
-
ApplicationModel
- Object
- ModelBase
- ApplicationModel
- Track
- Defined in:
- lib/scaffold/app/models/track.rb
Instance Method Summary collapse
Methods inherited from ModelBase
all, #attribute_values, #attributes, columns, #destroy, finalize!, find, first, #initialize, last, parse_all, #save, #save!, table_name, table_name=, #update, #update_attributes
Methods included from Searchable
#find_by, #joins, #left_joins, #select, #where
Methods included from Associatable
#assoc_options, #belongs_to, #has_many, #has_many_through, #has_one
Methods included from ModelCallbacks
#after_init, #before_valid, included
Methods included from Validations
Constructor Details
This class inherits a constructor from ModelBase
Instance Method Details
#set_defaults ⇒ Object
17 18 19 |
# File 'lib/scaffold/app/models/track.rb', line 17 def set_defaults self.bonus ||= false end |