From eebac026060ef9a5e69e69b01df61acee7c6c07f Mon Sep 17 00:00:00 2001 From: wycats Date: Mon, 7 Jun 2010 15:29:34 -0400 Subject: Make named helpers unprotected without becoming actions [#4696 state:resolved] --- actionpack/lib/action_dispatch/routing/route_set.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 750912b251..57a73dde75 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -68,6 +68,10 @@ module ActionDispatch clear! end + def helper_names + self.module.instance_methods.map(&:to_s) + end + def clear! @routes = {} @helpers = [] @@ -176,7 +180,6 @@ module ActionDispatch url_for(options) end - protected :#{selector} END_EVAL helpers << selector end -- cgit v1.2.3