class ObjectJSONMapper::Associations::HasMany
Public Instance Methods
call(object)
click to toggle source
@param object [ObjectJSONMapper::Base] @return [ObjectJSONMapper::Relation]
# File lib/object_json_mapper/associations/has_many.rb, line 6 def call(object) klass.where.tap do |relation| relation.path = object.client[endpoint].url end end