aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/flash.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make sure the flash method is defined even if helpers are not presentRafael Mendonça França2018-09-131-5/+3
|
* Conditionally use `helper_method` in Flash concernEric Anderson2018-08-091-3/+5
| | | | | | | | | | | | | | | | | | | | | | I was attempting to use the `flash` functionality in a `Metal` controller. When including the `flash` concern I received the following error: NoMethodError: undefined method `helper_method'.... Either: - `AbstractController::Helpers` should be a dependency of `ActionController::Flash` - `ActionController::Flash` should not require the existence of `AbstractController::Helpers`. Since my use case (set a flash and redirect) has no need for the helper method and that is a common use case, making the dependency conditional seemed the better option. NOTE: This is similar to issue #21067 only the error is within Rails itself while that issue had the error within Devise.
* Use frozen string literal in actionpack/Kir Shatrov2017-07-291-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Add option for class_attribute default (#29270)David Heinemeier Hansson2017-05-291-2/+1
| | | | | | | | | | | | * Allow a default value to be declared for class_attribute * Convert to using class_attribute default rather than explicit setter * Removed instance_accessor option by mistake * False is a valid default value * Documentation
* Privatize unneededly protected methods in Action PackAkira Matsuda2016-12-241-1/+1
|
* Custom flash should be defined only for the class that defines it and it's ↵Ricardo de Cillo2013-09-131-1/+1
| | | | subclasses.
* Add documentation for add_flash_types [ci skip]Robin Dupret2013-07-101-0/+17
| | | | | Document a little bit the ActionController::Flash::add_flash_types class method.
* Use "instance_accessor" for flash types class attributeCarlos Antonio da Silva2012-07-071-3/+3
|
* Added support add_flash_typeskennyj2012-07-071-8/+23
|
* Move Flash into middlewareJoshua Peek2010-01-151-175/+2
|
* Silence some trivial warnings: shadowed local vars, indentation mismatchesJeremy Kemper2009-12-281-60/+59
|
* Merge Session stuff into RackConvenienceJoshua Peek2009-12-201-6/+4
|
* Added alert/notice from 2-3-stable and refactored redirect_to into just ↵David Heinemeier Hansson2009-12-171-0/+41
| | | | living in Redirector [DHH]
* Fix warning in AC flashJoshua Peek2009-12-141-0/+1
|
* Make controller.flash public to be used in responders.José Valim2009-12-071-12/+12
| | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Clean up flash a bitYehuda Katz2009-10-271-1/+1
|
* Clean up flash a bitYehuda Katz2009-10-261-25/+23
|
* Rename /base to /metal and make base.rb and metal.rb top-level to reflect ↵Yehuda Katz2009-08-061-0/+164
their module locations