Class: StackableFlash::FlashStack

Inherits:
Array
  • Object
show all
Defined in:
lib/stackable_flash/flash_stack.rb

Instance Method Summary collapse

Instance Method Details

#stackObject



28
29
30
31
32
33
34
35
36
# File 'lib/stackable_flash/flash_stack.rb', line 28

def stack
  if StackableFlash.stacking
    # Format the stacked flashes according to stack_with_proc lambda
    StackableFlash::Config.config[:stack_with_proc].call(self)
  else
    # All StackableFlash functionality is completely bypassed
    self
  end
end