lib/cacheable_flash.rb in cacheable_flash-0.3.1 vs lib/cacheable_flash.rb in cacheable_flash-0.3.2

- old
+ new

@@ -11,11 +11,11 @@ end # By default stacking is false, but it can be turned on with: # CacheableFlash.configure do |config| # config[:stacking] = true - # config[:append_as] = :br + # config[:append_as] = :br # Pick a value, set your own proc, or don't: passes the JSON'd array to the cookie # end StackableFlash.stacking = false # The configure will override the above default require 'cacheable_flash/config' @@ -34,7 +34,12 @@ cookies['flash'] = cookie_flash(flash, cookies) # Base must define flash, as in Rails # TODO: Does not support flash.now feature of the FlashHash in Rails, # because flashes are only removed from cookies when they are used. flash.clear + end + + # simply abstracts the StackableFlash.stacking method + def self.stacking + StackableFlash.stacking end end