Method: ActionDispatch::Flash::FlashHash#initialize_copy

Defined in:
actionpack/lib/action_dispatch/middleware/flash.rb

#initialize_copy(other) ⇒ Object



155
156
157
158
159
160
161
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 155

def initialize_copy(other)
  if other.now_is_loaded?
    @now = other.now.dup
    @now.flash = self
  end
  super
end