Module: ActionController::Flash
Do not use. This module is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
Defined in: | actionpack/lib/action_controller/metal/flash.rb |
Class Method Summary
::ActiveSupport::Concern
- Extended
class_methods | Define class methods from given block. |
included | Evaluate given block in context of base class, so that you can write class macros here. |
prepended | Evaluate given block in context of base class, so that you can write class macros here. |
append_features, prepend_features |
Instance Method Summary
DSL Calls
included
[ GitHub ]9 10 11 12 13 14
# File 'actionpack/lib/action_controller/metal/flash.rb', line 9
included do class_attribute :_flash_types, instance_accessor: false, default: [] delegate :flash, to: :request add_flash_types(:alert, :notice) end
Instance Method Details
#redirect_to(options = {}, response_options_and_flash = {}) (private)
[ GitHub ]# File 'actionpack/lib/action_controller/metal/flash.rb', line 53
def redirect_to( = {}, = {}) # :doc: self.class._flash_types.each do |flash_type| if type = .delete(flash_type) flash[flash_type] = type end end if other_flashes = .delete(:flash) flash.update(other_flashes) end super(, ) end