Sha256: afe91500d60bd7b5fc841a7a0c9e969940a2635b37819c76fa1e4ab804312220
Contents?: true
Size: 1.13 KB
Versions: 16
Compression:
Stored size: 1.13 KB
Contents
require 'rails' require 'ratchetio' module Ratchetio class Railtie < ::Rails::Railtie rake_tasks do require 'ratchetio/rake_tasks' end config.after_initialize do Ratchetio.configure do |config| config.logger ||= ::Rails.logger config.environment ||= ::Rails.env config.root ||= ::Rails.root config.framework = "Rails: #{::Rails::VERSION::STRING}" end ActiveSupport.on_load(:action_controller) do # lazily load action_controller methods require 'ratchetio/rails/controller_methods' include Ratchetio::Rails::ControllerMethods end if defined?(::ActionDispatch::DebugExceptions) # rails 3.2.x require 'ratchetio/rails/middleware/exception_catcher' ::ActionDispatch::DebugExceptions.send(:include, Ratchetio::Rails::Middleware::ExceptionCatcher) elsif defined?(::ActionDispatch::ShowExceptions) # rails 3.0.x and 3.1.x require 'ratchetio/rails/middleware/exception_catcher' ::ActionDispatch::ShowExceptions.send(:include, Ratchetio::Rails::Middleware::ExceptionCatcher) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems