Module: ActiveTools::ActionPack::ActionDispatch::FlashStack
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_tools/action_pack/action_dispatch/flash_stack.rb
Instance Method Summary collapse
Instance Method Details
#<<(*hashes) ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/active_tools/action_pack/action_dispatch/flash_stack.rb', line 42 def <<(*hashes) hashes.each do |hash| hash.each do |k,v| Array(v).each do |value| stack[k] << value end end end end |
#stack ⇒ Object
52 53 54 |
# File 'lib/active_tools/action_pack/action_dispatch/flash_stack.rb', line 52 def stack @stack ||= Stack.new(self) end |