mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add :controller and :action to the list of valid conditions
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
e4f9132f6a
commit
02a1a4edc8
1 changed files with 1 additions and 0 deletions
|
@ -203,6 +203,7 @@ module ActionDispatch
|
||||||
self.default_url_options = {}
|
self.default_url_options = {}
|
||||||
self.request_class = request_class
|
self.request_class = request_class
|
||||||
self.valid_conditions = request_class.public_instance_methods.select{ |m| m != "id" }.map{ |m| m.to_sym }
|
self.valid_conditions = request_class.public_instance_methods.select{ |m| m != "id" }.map{ |m| m.to_sym }
|
||||||
|
self.valid_conditions += [:controller, :action]
|
||||||
|
|
||||||
@disable_clear_and_finalize = false
|
@disable_clear_and_finalize = false
|
||||||
clear!
|
clear!
|
||||||
|
|
Loading…
Reference in a new issue