Module: Corzinus::Flashable
- Extended by:
- ActiveSupport::Concern
- Included in:
- ApplicationController, Controllable
- Defined in:
- app/controllers/concerns/corzinus/flashable.rb
Instance Method Summary collapse
Instance Method Details
#flash_render(template, flash_messages = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/controllers/concerns/corzinus/flashable.rb', line 5 def flash_render(template, = {}) support_flash = [:notice, :alert] .each do |type, | flash.now[type] = if support_flash.include?(type) end render template end |