Module: FmStore::Associations::ClassMethods
- Defined in:
- lib/fm_store/associations.rb
Instance Method Summary collapse
Instance Method Details
#belongs_to(name, options = {}) ⇒ Object
16 17 18 |
# File 'lib/fm_store/associations.rb', line 16 def belongs_to(name, = {}) associate(Associations::BelongsTo, optionize(name, )) end |
#has_many(name, options = {}) ⇒ Object
12 13 14 |
# File 'lib/fm_store/associations.rb', line 12 def has_many(name, = {}) associate(Associations::HasMany, optionize(name, ), false) end |