Class: Rack::LocaleMemorable::Request
- Inherits:
-
Request
- Object
- Request
- Rack::LocaleMemorable::Request
- Defined in:
- lib/rack/locale_memorable/request.rb
Instance Attribute Summary collapse
-
#explicit_locale ⇒ Object
readonly
Returns the value of attribute explicit_locale.
Instance Method Summary collapse
Instance Attribute Details
#explicit_locale ⇒ Object (readonly)
Returns the value of attribute explicit_locale.
6 7 8 |
# File 'lib/rack/locale_memorable/request.rb', line 6 def explicit_locale @explicit_locale end |
Instance Method Details
#detect_locale(params_key:, cookie_key:) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rack/locale_memorable/request.rb', line 8 def detect_locale(params_key:, cookie_key:) ( from_params(params_key) || () || from_headers ) end |