Sha256: 7252cff38d3750d9cf1a36503b98faeff6d573b8e195a5da38f59dc2b42fe7a5

Contents?: true

Size: 420 Bytes

Versions: 19

Compression:

Stored size: 420 Bytes

Contents

require "rails/railtie"
require "browser/action_controller"
require "browser/middleware/context/additions"

class Browser
  class Railtie < Rails::Railtie
    config.browser = ActiveSupport::OrderedOptions.new

    initializer "browser" do
      ::ActionController::Base.send :include, Browser::ActionController
      Browser::Middleware::Context.send :include, Browser::Middleware::Context::Additions
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
browser-1.1.0 lib/browser/rails.rb
browser2-1.0.0 lib/browser/rails.rb
browser-1.0.1 lib/browser/rails.rb
browser-1.0.0 lib/browser/rails.rb
browser-0.9.1 lib/browser/rails.rb
browser-0.9.0 lib/browser/rails.rb
browser-0.8.0 lib/browser/rails.rb
browser-0.7.2 lib/browser/rails.rb
browser-0.7.1 lib/browser/rails.rb
browser-0.7.0 lib/browser/rails.rb
browser-0.6.0 lib/browser/rails.rb
browser-0.5.0 lib/browser/rails.rb
browser-0.4.1 lib/browser/rails.rb
browser-0.4.0 lib/browser/rails.rb
browser-0.3.2 lib/browser/rails.rb
browser-0.3.1 lib/browser/rails.rb
browser-0.3.0 lib/browser/rails.rb
browser-0.2.1 lib/browser/rails.rb
browser-0.2.0 lib/browser/rails.rb