Module: LocaleFlash::Rails::ActionView
- Included in:
- ActionView::Base
- Defined in:
- lib/locale_flash/rails/action_view.rb
Instance Method Summary collapse
Instance Method Details
#locale_flash ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/locale_flash/rails/action_view.rb', line 5 def locale_flash output = '' flash.each do |type, args| output << LocaleFlash::Flash.from_params(type, args).to_html end output.respond_to?(:html_safe) ? output.html_safe : output end |