1
0
Fork 0
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:
Andrew White 2010-06-28 15:44:27 +01:00 committed by José Valim
parent e4f9132f6a
commit 02a1a4edc8

View file

@ -203,6 +203,7 @@ module ActionDispatch
self.default_url_options = {}
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 += [:controller, :action]
@disable_clear_and_finalize = false
clear!