Module: HttpAcceptLanguage::EasyAccess

Defined in:
lib/http_accept_language/railtie.rb

Instance Method Summary collapse

Instance Method Details

#http_accept_languageObject


13
14
15
# File 'lib/http_accept_language/railtie.rb', line 13

def http_accept_language
  @http_accept_language ||= request.env["http_accept_language.parser"] || Parser.new(request.env["HTTP_ACCEPT_LANGUAGE"])
end