Displaying 1 result from an estimated 1 matches for "glob_param".
2011 Jan 10
0
Can't use ActionDispatch::Request in Rails middleware because path_parameters get lost
...ough the
request object.
#file: action_dispatch/routing/route_set.rb
class RouteSet
PARAMETERS_KEY = ''action_dispatch.request.path_parameters''
class Dispatcher #:nodoc:
def initialize(options={})
@defaults = options[:defaults]
@glob_param = options.delete(:glob)
@controllers = {}
end
def call(env)
params = env[PARAMETERS_KEY]
prepare_params!(params)
For now, I''ve moved to using a Rack::Request object which is a shame
because I had to manually extract out the subdomain and the...