Sha256: 6004b6f29d3294bd77e8ed7a765eea77492410286fc23526165c625d064e591d
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
# https://robots.thoughtbot.com/mygem-configure-block module Graphiti class Configuration # @return [Boolean] Should we raise when the client requests a relationship not defined on the server? # Defaults to true. attr_accessor :raise_on_missing_sideload # @return [Boolean] Concurrently fetch sideloads? # Defaults to false OR if classes are cached (Rails-only) attr_accessor :concurrency attr_accessor :respond_to # Set defaults # @api private def initialize @raise_on_missing_sideload = true @concurrency = false @respond_to = [:json, :jsonapi, :xml] end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
graphiti-1.0.alpha.1 | lib/graphiti/configuration.rb |
graphiti-rb-1.0.alpha.1 | lib/graphiti/configuration.rb |