Sha256: 2964c4ca2657d548e88df501062c4fe19dcc23ed87358e31a44307b46ad84f51

Contents?: true

Size: 483 Bytes

Versions: 3

Compression:

Stored size: 483 Bytes

Contents

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

if defined?(::ActionController::Base)
  ::ActionController::Base.send(:include, Flail::Rails::RescueAction)
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

3 entries across 3 versions & 1 rubygems

Version Path
flail-0.0.3 lib/flail/rails.rb
flail-0.0.2 lib/flail/rails.rb
flail-0.0.1 lib/flail/rails.rb