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

Version Path
api_resource-0.3.12 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.11 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.10 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.8 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.7 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.6 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.5 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.4 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.3 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.2 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.1 lib/api_resource/associations/relation_scope.rb
api_resource-0.3.0 lib/api_resource/associations/relation_scope.rb
api_resource-0.2.11 lib/api_resource/associations/relation_scope.rb
api_resource-0.2.10 lib/api_resource/associations/relation_scope.rb
api_resource-0.2.9 lib/api_resource/associations/relation_scope.rb
api_resource-0.2.8 lib/api_resource/associations/relation_scope.rb
api_resource-0.2.7 lib/api_resource/associations/relation_scope.rb
api_resource-0.2.6 lib/api_resource/associations/relation_scope.rb
api_resource-0.2.5 lib/api_resource/associations/relation_scope.rb
api_resource-0.2.4 lib/api_resource/associations/relation_scope.rb