Module: RPCMapper::Associations::External::ClassMethods
- Defined in:
- lib/rpc_mapper/associations/external.rb
Instance Method Summary collapse
- #belongs_to(association, options = {}) ⇒ Object
- #has_many(association, options = {}) ⇒ Object
- #has_one(association, options = {}) ⇒ Object
Instance Method Details
#belongs_to(association, options = {}) ⇒ Object
8 9 10 |
# File 'lib/rpc_mapper/associations/external.rb', line 8 def belongs_to(association, ={}) create_external_association(:belongs, association, ) end |
#has_many(association, options = {}) ⇒ Object
16 17 18 |
# File 'lib/rpc_mapper/associations/external.rb', line 16 def has_many(association, ={}) create_external_association(:many, association, ) end |
#has_one(association, options = {}) ⇒ Object
12 13 14 |
# File 'lib/rpc_mapper/associations/external.rb', line 12 def has_one(association, ={}) create_external_association(:one, association, ) end |