class Aldous::Respondable::Redirectable::RedirectAction

Attributes

controller[R]
location[R]
status[R]
view_data[R]

Public Class Methods

new(location, controller, view_data, status) click to toggle source
# File lib/aldous/respondable/redirectable.rb, line 24
def initialize(location, controller, view_data, status)
  @location = location
  @controller = controller
  @view_data = view_data
  @status = status
end

Public Instance Methods

execute() click to toggle source
# File lib/aldous/respondable/redirectable.rb, line 31
def execute
  Shared::Flash.new(view_data, controller.flash).set_error
  controller.redirect_to location, {status: status}
end