class GraphQL::Rails::Engine
Public Instance Methods
exception(e)
click to toggle source
# File lib/graphql/rails/engine.rb, line 29 def exception(e) begin error "#{e.class.name} (#{e.message}):" error " #{e.backtrace.join("\n ")}" rescue end end
reload!()
click to toggle source
Clear state and load operations from the Rails
app.
# File lib/graphql/rails/engine.rb, line 61 def reload! Types.clear Schema.clear Rails.logger.debug 'Loading operations' Dir[@graph_path.join('operations', '**', '*.rb')].each do |file| Rails.logger.debug "Loading file: #{file}" require_dependency file end end