Sha256: 56ee0fed05e535186ff2664d24f175dd9d205d95e06ea9a81562f4bb84f46e06
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
module RailsLocaleDetection module ControllerMethods extend ActiveSupport::Concern include LocaleAccessors included do detect_locale if RailsLocaleDetection.automatically_detect end module ClassMethods if ::Rails.version.to_s < "4.0" def detect_locale append_before_filter LocaleDetector end else def detect_locale append_before_action LocaleDetector end end end def user_locale nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems