Class: PrepareFlash
- Inherits:
-
Rad::Conveyors::Processor
- Object
- Rad::Conveyors::Processor
- PrepareFlash
- Defined in:
- lib/rad/html/processors/prepare_flash.rb
Instance Attribute Summary
Attributes inherited from Rad::Conveyors::Processor
Instance Method Summary collapse
Methods inherited from Rad::Conveyors::Processor
Constructor Details
This class inherits a constructor from Rad::Conveyors::Processor
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/rad/html/processors/prepare_flash.rb', line 6 def call workspace.request.must_be.present workspace.params.must_be.defined = workspace.request.session.delete 'flash' if .present? = JSON.load rad[:flash] = Rad::Html::Flash.new workspace.params.format, end next_processor.call if rad.include? :flash flash = rad[:flash] = flash. workspace.request.must_be.present workspace.request.session['flash'] = .to_json unless .empty? end end |