Sha256: e8d19ca33654308c42694388c31359b1ed391b13af1e0cd7dd1c7671d440cc1e

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

module RailsLocaleDetection
  module ControllerMethods
    extend ActiveSupport::Concern
    include LocaleAccessors

    included do
      detect_locale if RailsLocaleDetection.automatically_detect
    end

    module ClassMethods
      def detect_locale
        append_before_filter LocaleDetector
      end
    end

    def user_locale
      nil
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_locale_detection-2.0.0 lib/rails_locale_detection/controller_methods.rb
rails_locale_detection-2.0.0.pre4 lib/rails_locale_detection/controller_methods.rb
rails_locale_detection-2.0.0.pre3 lib/rails_locale_detection/controller_methods.rb
rails_locale_detection-2.0.0.pre2 lib/rails_locale_detection/controller_methods.rb