Exception: ActionController::StashedRedirects::MissingRedirectError

Inherits:
StandardError
  • Object
show all
Includes:
Module.new
Defined in:
lib/action_controller/stashed_redirects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(purpose) ⇒ MissingRedirectError

Returns a new instance of MissingRedirectError.



21
22
23
24
# File 'lib/action_controller/stashed_redirects.rb', line 21

def initialize(purpose)
  super "can't extract a stashed redirect_url to redirect_to"
  @purpose = purpose
end

Instance Attribute Details

#purposeObject (readonly)

Returns the value of attribute purpose.



19
20
21
# File 'lib/action_controller/stashed_redirects.rb', line 19

def purpose
  @purpose
end