Sha256: f6045f06b41f47f72bb1f2bb29b66756284845808ba83e29b56bf0474959280b
Contents?: true
Size: 577 Bytes
Versions: 5
Compression:
Stored size: 577 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 ApiResource.with_ttl(ttl) do @internal_object ||= self.klass.send(:load_scope_with_options, self.current_scope, self.to_hash) end end # # class factory def self.class_factory(hsh) ApiResource::Associations::RelationScope end end end end
Version data entries
5 entries across 5 versions & 1 rubygems