Module: RPCMapper::Associations::External::ClassMethods

Defined in:
lib/rpc_mapper/associations/external.rb

Instance Method Summary collapse

Instance Method Details

#belongs_to(association, options = {}) ⇒ Object



8
9
10
# File 'lib/rpc_mapper/associations/external.rb', line 8

def belongs_to(association, options={})
  create_external_association(:belongs, association, options)
end

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



16
17
18
# File 'lib/rpc_mapper/associations/external.rb', line 16

def has_many(association, options={})
  create_external_association(:many, association, options)
end

#has_one(association, options = {}) ⇒ Object



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

def has_one(association, options={})
  create_external_association(:one, association, options)
end