Module: FlashMessagesHelper::InstanceMethods
- Defined in:
- lib/flash_messages_helper.rb
Instance Method Summary collapse
Instance Method Details
#flash_messages(options = {}) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/flash_messages_helper.rb', line 48 def ( = {}) ret = [] flash.each do |key, value| ret << content_tag(FlashMessagesHelper.configuration.wrapper, value, { :class => FlashMessagesHelper.configuration.css_class.call(key), :id => FlashMessagesHelper.configuration.dom_id.call(key) }.merge() ) end return_string = ret.join("\n") return return_string.respond_to?(:html_safe) ? return_string.html_safe : return_string end |