File: //usr/local/rvm/gems/ruby-2.6.8/doc/actionpack-6.1.4.1/ri/ActionDispatch/Flash/FlashHash/now-i.ri
U:RDoc::AnyMethod[iI"now:ETI")ActionDispatch::Flash::FlashHash#now;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"USets a flash that will not be available to the next action, only to the current.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"2flash.now[:message] = "Hello current action"
;T:@format0o;
; [ I"YThis method enables you to use the flash as a central messaging system in your app. ;TI"kWhen you need to pass an object to the next action, you use the standard flash assign (<tt>[]=</tt>). ;TI"gWhen you need to pass an object to the current action, you use <tt>now</tt>, and your object will ;TI",vanish when the current action is done.;T@o;
; [I"jEntries set via <tt>now</tt> are accessed the same way as standard entries: <tt>flash['my-key']</tt>.;T@o;
; [I",Also, brings two convenience accessors:;T@o;; [
I"%flash.now.alert = "Beware now!"
;TI"7# Equivalent to flash.now[:alert] = "Beware now!"
;TI"
;TI")flash.now.notice = "Good luck now!"
;TI":# Equivalent to flash.now[:notice] = "Good luck now!";T;
0:
@fileI",lib/action_dispatch/middleware/flash.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@%FI"FlashHash;TcRDoc::NormalClass00