Class: RespondForHelper::Lookups::Flash
- Inherits:
-
Object
- Object
- RespondForHelper::Lookups::Flash
- Defined in:
- lib/respond_for_helper/lookups/flash.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(controller, options) ⇒ Flash
constructor
A new instance of Flash.
Constructor Details
#initialize(controller, options) ⇒ Flash
Returns a new instance of Flash.
6 7 8 9 10 11 |
# File 'lib/respond_for_helper/lookups/flash.rb', line 6 def initialize(controller, ) @controller = controller @options = @controller_config = @controller.class.respond_for_config end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/respond_for_helper/lookups/flash.rb', line 13 def call if @controller_config[:flasher] @controller_config[:flasher] else Config.flasher end end |