adopt-a-hydrant/app/controllers/application_controller.rb

15 lines
289 B
Ruby
Raw Normal View History

2011-02-14 18:28:51 +00:00
class ApplicationController < ActionController::Base
protect_from_forgery
2011-08-30 00:50:51 +00:00
before_filter :set_flash_from_params
protected
def set_flash_from_params
if params[:flash]
params[:flash].each do |key, message|
flash.now[key.to_sym] = message
end
end
end
2011-02-14 18:28:51 +00:00
end