Module: Roundabout::ActionController::Redirecting

Defined in:
lib/roundabout/monkey/action_controller.rb

Instance Method Summary collapse

Instance Method Details

#redirect_toObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/roundabout/monkey/action_controller.rb', line 6

def redirect_to(*)
  ret = super

  begin
    h = @_request.env['action_dispatch.request.path_parameters'].with_indifferent_access
    Roundabout.record_transition "#{h[:controller]}##{h[:action]}", Roundabout.normalize_url(self.location), :get, :redirect
  rescue => e
    p e
  end
  ret
end