module RemoteAssociation
Public Instance Methods
belongs_to(rel, opts={})
click to toggle source
# File lib/nube/remote_association.rb, line 8 def belongs_to(rel, opts={}) remote_belongs_to(rel, opts) end
has_many(rel, opts={})
click to toggle source
# File lib/nube/remote_association.rb, line 16 def has_many(rel, opts={}) remote_has_many(rel, opts) end
has_one(rel, opts={})
click to toggle source
# File lib/nube/remote_association.rb, line 12 def has_one(rel, opts={}) remote_has_one(rel, opts) end
reflection(rel=nil)
click to toggle source
# File lib/nube/remote_association.rb, line 20 def reflection(rel=nil) rel.nil? ? remote_reflections : remote_reflections.select{|r| r[:rel] == rel }.first end