Sha256: 8e22c8c34eb09a5754e88c224e69f73ddc9b9143488dad308470954699422bf7

Contents?: true

Size: 354 Bytes

Versions: 5

Compression:

Stored size: 354 Bytes

Contents

module Graphiti
  module Context
    extend ActiveSupport::Concern

    module Overrides
      def sideload_whitelist=(val)
        super(JSONAPI::IncludeDirective.new(val).to_hash)
      end
    end

    included do
      class_attribute :sideload_whitelist
      self.sideload_whitelist = {}
      class << self;prepend Overrides;end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
graphiti-1.0.alpha.8 lib/graphiti/context.rb
graphiti-1.0.alpha.7 lib/graphiti/context.rb
graphiti-1.0.alpha.6 lib/graphiti/context.rb
graphiti-1.0.alpha.5 lib/graphiti/context.rb
graphiti-1.0.alpha.4 lib/graphiti/context.rb