lib/unobtrusive_flash/controller_mixin.rb
def append_flash_to_cookie(existing_cookie, flash, unobtrusive_flash_keys)
        cookie_flash = (existing_cookie && parse_cookie(existing_cookie)) || []
        cookie_flash += sanitize_flash(flash, unobtrusive_flash_keys)
        cookie_flash.uniq.to_json
      end
# Prepares a safe and clean version of the flash hash for the frontend
# flash - value of `flash` controller attribute
# displayable_flash_keys - list of flash keys that will be displayed
Prepares a safe and clean version of the flash hash for the frontend
flash - value of `flash` controller attribute
displayable_flash_keys - list of flash keys that will be displayed
Prepares a safe and clean version of the flash hash for the frontend flash - value of ` flash ` controller attribute displayable_flash_keys - list of flash keys that will be displayed
def append_flash_to_cookie(existing_cookie, flash, unobtrusive_flash_keys)
        cookie_flash = (existing_cookie && parse_cookie(existing_cookie)) || []
        cookie_flash += sanitize_flash(flash, unobtrusive_flash_keys)
        cookie_flash.uniq.to_json
      end
def append_flash_to_cookie ( existing_cookie , flash , unobtrusive_flash_keys ) cookie_flash = ( existing_cookie && parse_cookie ( existing_cookie ) ) || [ ] cookie_flash += sanitize_flash ( flash , unobtrusive_flash_keys ) cookie_flash . uniq . to_json end
Prepares a safe and clean version of the flash hash for the frontend
flash - value of `flash` controller attribute
displayable_flash_keys - list of flash keys that will be displayed
Prepares a safe and clean version of the flash hash for the frontend flash - value of ` flash ` controller attribute displayable_flash_keys - list of flash keys that will be displayed
existing_cookie
flash
unobtrusive_flash_keys