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, options= {})
  associate(Associations::BelongsTo, optionize(name, options))
end

#has_many(name, options = {}) ⇒ Object



12
13
14
# File 'lib/fm_store/associations.rb', line 12

def has_many(name, options = {})
  associate(Associations::HasMany, optionize(name, options), false)
end