Sha256: 1baade78365071feb976adc5274babef1dec79ee958783ece6ff93e7a6d539a5
Contents?: true
Size: 526 Bytes
Versions: 21
Compression:
Stored size: 526 Bytes
Contents
require 'api_resource/associations/scope' module ApiResource module Associations class RelationScope < Scope # Use this method to access the internal data, this guarantees that loading only occurs once per object def internal_object @internal_object ||= self.klass.send(:load_scope_with_options, self.current_scope, self.to_hash) end # # class factory def self.class_factory(hsh) ApiResource::Associations::RelationScope end end end end
Version data entries
21 entries across 21 versions & 1 rubygems