Sha256: 20f150a06492853d4faf9d1f6e463bb73f9791559b174707143fa04ee5d0a2c7
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
class DummyController < ApplicationController include CacheableFlash def index expected_flash = { 'errors' => "This is an Error", 'notice' => "This is a Notice" } flash[:errors] = expected_flash['errors'] flash[:notice] = expected_flash['notice'] end def error expected_flash = { 'errors' => "This is a real Error", } flash[:errors] = expected_flash['errors'] end def no_flash # Does not set any flash end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cacheable_flash-0.2.10 | spec/dummy/app/controllers/dummy_controller.rb |