Class: Jerk::Ignore

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/jerk.rb

Overview

Jerk::Ignore — Just downcase the URL for Rails without redirecting the user

Instance Method Summary collapse

Methods included from Base

#downcased_url, #each, #initialize, #url_without_query_string

Instance Method Details

#call(env) ⇒ Object



49
50
51
52
53
54
# File 'lib/jerk.rb', line 49

def call(env)
  env['HOST'].to_s.downcase!
  env['SCRIPT_NAME'].to_s.downcase!
  env['PATH_INFO'].to_s.downcase!
  super
end