Sha256: bd59b63fd582e769dfcd585be47b95f787e55d1d9d5ab1729b1a414c4fde0f4a
Contents?: true
Size: 745 Bytes
Versions: 2
Compression:
Stored size: 745 Bytes
Contents
class Flail class Railtie < ::Rails::Railtie initializer "flail.use_rack_middleware" do |app| app.config.middleware.insert 0, Flail::Rack end config.after_initialize do Flail.configure do environment ::Rails.env host Socket.gethostname end if defined?(::ActionDispatch::DebugExceptions) # Rails 3.2.x require 'flail/rails/action_dispatch' ::ActionDispatch::DebugExceptions.send(:include, Flail::Rails::ActionDispatch) elsif defined?(::ActionDispatch::ShowExceptions) # Rails 3.0.x || 3.1.x require 'flail/rails/action_dispatch' ::ActionDispatch::ShowExceptions.send(:include, Flail::Rails::ActionDispatch) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flail-0.0.3 | lib/flail/railtie.rb |
flail-0.0.2 | lib/flail/railtie.rb |