Class: GraphitiGraphQL::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/graphiti_graphql/engine.rb

Class Method Summary collapse

Class Method Details

.reloader_classObject



20
21
22
23
24
25
26
27
# File 'lib/graphiti_graphql/engine.rb', line 20

def self.reloader_class
  case Rails::VERSION::MAJOR
  when 4 then ActionDispatch::Reloader
  when 5 then ActiveSupport::Reloader
  else
    ::Rails.application.reloader
  end
end