diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-08 21:37:56 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-08 21:40:18 -0800 |
commit | 514d3a47f4a6a7a46054b45cb6b78ba37d62618e (patch) | |
tree | 2e6d8152fad0a1692a56d62d8b353b9b17c31ed8 /actionpack/lib | |
parent | e4558e0dbfc87724fb3ce3fdc38aea3e49843aec (diff) | |
download | rails-514d3a47f4a6a7a46054b45cb6b78ba37d62618e.tar.gz rails-514d3a47f4a6a7a46054b45cb6b78ba37d62618e.tar.bz2 rails-514d3a47f4a6a7a46054b45cb6b78ba37d62618e.zip |
Remove outdated, distracting commented code
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 550e54e955..8ebad1a9b8 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -168,31 +168,6 @@ module ActionDispatch selector = url_helper_name(name, kind) hash_access_method = hash_access_name(name, kind) - # We use module_eval to avoid leaks. - # - # def users_url(*args) - # if args.empty? || Hash === args.first - # options = hash_for_users_url(args.first || {}) - # else - # options = hash_for_users_url(args.extract_options!) - # default = default_url_options(options) if self.respond_to?(:default_url_options, true) - # options = (default ||= {}).merge(options) - # - # keys = [] - # keys -= options.keys if args.size < keys.size - 1 - # - # args = args.zip(keys).inject({}) do |h, (v, k)| - # h[k] = v - # h - # end - # - # # Tell url_for to skip default_url_options - # options[:use_defaults] = false - # options.merge!(args) - # end - # - # url_for(options) - # end @module.module_eval <<-END_EVAL, __FILE__, __LINE__ + 1 def #{selector}(*args) options = #{hash_access_method}(args.extract_options!) |