diff options
author | Xavier Noria <fxn@hashref.com> | 2008-12-27 20:06:45 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-12-27 20:06:45 +0100 |
commit | 0ba8dcb444f6050a3dff35513c03dbc68841f54e (patch) | |
tree | 0b979969f6551ab43e648eed2f65ff07aa5e268b /actionpack/lib/action_controller | |
parent | 8cabcbd2726ee959bc826e1bd681f84356473540 (diff) | |
download | rails-0ba8dcb444f6050a3dff35513c03dbc68841f54e.tar.gz rails-0ba8dcb444f6050a3dff35513c03dbc68841f54e.tar.bz2 rails-0ba8dcb444f6050a3dff35513c03dbc68841f54e.zip |
adds inline docs for dynamically created methods in Action Pack
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/routing/route_set.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/routing/route_set.rb b/actionpack/lib/action_controller/routing/route_set.rb index 13646aef61..d4c53ff911 100644 --- a/actionpack/lib/action_controller/routing/route_set.rb +++ b/actionpack/lib/action_controller/routing/route_set.rb @@ -145,10 +145,10 @@ module ActionController def define_hash_access(route, name, kind, options) selector = hash_access_name(name, kind) named_helper_module_eval <<-end_eval # We use module_eval to avoid leaks - def #{selector}(options = nil) - options ? #{options.inspect}.merge(options) : #{options.inspect} - end - protected :#{selector} + def #{selector}(options = nil) # def hash_for_users_url(options = nil) + options ? #{options.inspect}.merge(options) : #{options.inspect} # options ? {:only_path=>false}.merge(options) : {:only_path=>false} + end # end + protected :#{selector} # protected :hash_for_users_url end_eval helpers << selector end |