File: rails.rb

package info (click to toggle)
ruby-graphiql-rails 1.4.10-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, bullseye, buster
  • size: 6,640 kB
  • sloc: ruby: 226; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require "rails"

if ActiveSupport::Inflector.method(:inflections).arity == 0
  # Rails 3 does not take a language in inflections.
  ActiveSupport::Inflector.inflections do |inflect|
    inflect.acronym("GraphiQL")
  end
else
  ActiveSupport::Inflector.inflections(:en) do |inflect|
    inflect.acronym("GraphiQL")
  end
end

require "graphiql/rails/config"
require "graphiql/rails/engine"
require "graphiql/rails/version"

module GraphiQL
  module Rails
    class << self
      attr_accessor :config
    end

    self.config = Config.new
  end
end