Sha256: 512b5fb78a1b881845b34b326f124a1b6f709e0c87e09dd53a0e26da4aee508e

Contents?: true

Size: 558 Bytes

Versions: 11

Compression:

Stored size: 558 Bytes

Contents

require 'flail'
require 'flail/rails/rescue_action'

if defined?(::ActionController::Base)
  ::ActionController::Base.send(:include, Flail::Rails::RescueAction)
  ::ActionController::Base.send(:include, Flail::Rails::ControllerMethods)
end

if defined?(::Rails.configuration) && ::Rails.configuration.respond_to?(:middleware)
  ::Rails.configuration.middleware.insert_after 'ActionController::Failsafe', Flail::Rack
end

Flail.configure do
  environment(defined?(::Rails.env) && ::Rails.env || defined?(RAILS_ENV) && RAILS_ENV)
  host Socket.gethostname
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
flail-0.1.6 lib/flail/rails.rb
flail-0.1.5 lib/flail/rails.rb
flail-0.1.4 lib/flail/rails.rb
flail-0.1.3 lib/flail/rails.rb
flail-0.1.2 lib/flail/rails.rb
flail-0.1.1 lib/flail/rails.rb
flail-0.1.0 lib/flail/rails.rb
flail-0.0.7 lib/flail/rails.rb
flail-0.0.6 lib/flail/rails.rb
flail-0.0.5 lib/flail/rails.rb
flail-0.0.4 lib/flail/rails.rb