Sha256: e7534cfde48fe4609c10855668383ffbc6b54593d299b620b1e138c1765d21c2
Contents?: true
Size: 819 Bytes
Versions: 7
Compression:
Stored size: 819 Bytes
Contents
require 'rails' require 'i18n' require 'http_accept_language' require 'rails_locale_detection/detection_methods' require 'rails_locale_detection/locale_accessors' require 'rails_locale_detection/locale_detector' require 'rails_locale_detection/controller_methods' module RailsLocaleDetection require 'rails_locale_detection/railtie' if defined?(Rails) mattr_accessor :locale_expiry @@locale_expiry = 3.months mattr_accessor :set_default_url_option @@set_default_url_option = :always mattr_accessor :detection_order @@detection_order = [:param, :user, :cookie, :request] mattr_accessor :automatically_detect @@automatically_detect = true mattr_accessor :locale_key @@locale_key = :locale def self.config yield self end end module Rails LocaleDetection = ::RailsLocaleDetection end
Version data entries
7 entries across 7 versions & 1 rubygems