Module: RedirectWithParams::Extensions::Redirection

Defined in:
lib/redirect_with_params/extensions.rb

Instance Method Summary collapse

Instance Method Details

#redirect_with_params(*args, &block) ⇒ Object



32
33
34
35
36
# File 'lib/redirect_with_params/extensions.rb', line 32

def redirect_with_params(*args, &block)
  options = args.extract_options!
  status  = options.delete(:status) || 301
  RedirectWithParams::Extensions::Routing::ParamPreservingRedirect.new(status, args.to_a, block)
end