1
module ActionController #:nodoc:
3
extend ActiveSupport::Concern
6
delegate :flash, :to => :request
7
delegate :alert, :notice, :to => "request.flash"
8
helper_method :alert, :notice
12
def redirect_to(options = {}, response_status_and_flash = {}) #:doc:
13
if alert = response_status_and_flash.delete(:alert)
17
if notice = response_status_and_flash.delete(:notice)
18
flash[:notice] = notice
21
if other_flashes = response_status_and_flash.delete(:flash)
22
flash.update(other_flashes)
25
super(options, response_status_and_flash)