lib/rails/graphql.rb
def enable_ar_adapter(adapter_name)
        return if (@@loaded_adapters ||= Set.new).include?(adapter_name)

        path = "adapters/#{ar_adapter_key(adapter_name)}_adapter"
        $LOAD_PATH.any? do |load_path|
          next unless load_path.to_s =~ %r{\/app\/graphql$}
          next unless File.exist?("#{load_path}/#{path}.rb")
          load "#{load_path}/#{path}.rb"
        end || load("#{__dir__}/graphql/#{path}.rb")

        @@loaded_adapters << adapter_name
      end
# This is a little helper to require ActiveRecord adapter specific
# configurations
This is a little helper to require ActiveRecord adapter specific
configurations
This is a little helper to require ActiveRecord adapter specific configurations
def enable_ar_adapter(adapter_name)
        return if (@@loaded_adapters ||= Set.new).include?(adapter_name)
        path = "adapters/#{ar_adapter_key(adapter_name)}_adapter"
        $LOAD_PATH.any? do |load_path|
          next unless load_path.to_s =~ %r{\/app\/graphql$}
          next unless File.exist?("#{load_path}/#{path}.rb")
          load "#{load_path}/#{path}.rb"
        end || load("#{__dir__}/graphql/#{path}.rb")
        @@loaded_adapters << adapter_name
      end
def enable_ar_adapter ( adapter_name ) return if ( @@loaded_adapters ||= Set . new ) . include? ( adapter_name ) path = "adapters/#{ar_adapter_key(adapter_name)}_adapter" $LOAD_PATH . any? do | load_path | next unless load_path . to_s =~ %r{ \/ app \/ graphql$ } next unless File . exist? ( "#{load_path}/#{path}.rb" ) load "#{load_path}/#{path}.rb" end || load ( "#{__dir__}/graphql/#{path}.rb" ) @@loaded_adapters << adapter_name end
This is a little helper to require ActiveRecord adapter specific
configurations
This is a little helper to require ActiveRecord adapter specific configurations
adapter_name