method

flash_with_components

rails latest stable - Class: ActionController::Components::InstanceMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

flash_with_components(refresh = false)
protected

No documentation available.

# File actionpack/lib/action_controller/components.rb, line 102
        def flash_with_components(refresh = false) #:nodoc:
          if !defined?(@_flash) || refresh
            @_flash =
              if defined?(@parent_controller)
                @parent_controller.flash
              else
                flash_without_components
              end
          end
          @_flash
        end