Module: RemoteAssociation::Base
- Defined in:
- lib/remote_association.rb
Overview
Include this class to hav associations to ActiveResource models
It will add methods to your class:
-
has_one_remote(name, *options)
-
has_many_remote(name, *options)
-
activeresource_relations
-
add_activeresource_relation(name, options)
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/remote_association.rb', line 20 def self.included(base) base.extend ClassMethods base.send :include, InstanceMethods base.class_eval do end end |