Sprankelprachtig aan/afmeldsysteem

application_helper.rb 176B

12345678
  1. module ApplicationHelper
  2. def flash_message(category, message)
  3. flash[:alerts] ||= {}
  4. flash[:alerts][category] ||= []
  5. flash[:alerts][category] << message
  6. end
  7. end