Sha256: 7d06fcb1a01bca063cbecc29d7bbf69de2f9d7a6797bbd37b5e919d94b4e9d1b

Contents?: true

Size: 438 Bytes

Versions: 7

Compression:

Stored size: 438 Bytes

Contents

module RailsLocaleDetection
  class Railtie < Rails::Railtie
    initializer "rails_locale_detection.append_before_filter" do
      ActiveSupport.on_load(:action_controller) do
        ActionController::Base.send :include, RailsLocaleDetection::ControllerMethods
      end
      
      ActiveSupport.on_load(:action_view) do
        ActionView::Base.send :include, Rails::LocaleDetection::LocaleAccessors
      end      
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_locale_detection-2.3.0 lib/rails_locale_detection/railtie.rb
rails_locale_detection-2.2.0 lib/rails_locale_detection/railtie.rb
rails_locale_detection-2.1.0 lib/rails_locale_detection/railtie.rb
rails_locale_detection-2.0.0 lib/rails_locale_detection/railtie.rb
rails_locale_detection-2.0.0.pre4 lib/rails_locale_detection/railtie.rb
rails_locale_detection-2.0.0.pre3 lib/rails_locale_detection/railtie.rb
rails_locale_detection-2.0.0.pre2 lib/rails_locale_detection/railtie.rb