aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-12-28 16:00:12 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-12-28 16:01:38 +0000
commitaaea12c497ca86a86fbda8409c226630ade22f89 (patch)
tree774246204e597a4a623d63dc489ce17de0b5353b /actionpack/lib
parent297276b99c2d14bcce2fd19f9ab3de75ea3dbc68 (diff)
downloadrails-aaea12c497ca86a86fbda8409c226630ade22f89.tar.gz
rails-aaea12c497ca86a86fbda8409c226630ade22f89.tar.bz2
rails-aaea12c497ca86a86fbda8409c226630ade22f89.zip
Revert inline docs
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/routing/route_set.rb8
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb6
2 files changed, 7 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/routing/route_set.rb b/actionpack/lib/action_controller/routing/route_set.rb
index d4c53ff911..13646aef61 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) # 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
+ def #{selector}(options = nil)
+ options ? #{options.inspect}.merge(options) : #{options.inspect}
+ end
+ protected :#{selector}
end_eval
helpers << selector
end
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index f23a0f78e7..621e2946b5 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -737,9 +737,9 @@ module ActionView
(field_helpers - %w(label check_box radio_button fields_for)).each do |selector|
src = <<-end_src
- def #{selector}(method, options = {}) # def text_field(method, options = {})
- @template.send(#{selector.inspect}, @object_name, method, objectify_options(options)) # @template.send("text_field", @object_name, method, objectify_options(options))
- end # end
+ def #{selector}(method, options = {})
+ @template.send(#{selector.inspect}, @object_name, method, objectify_options(options))
+ end
end_src
class_eval src, __FILE__, __LINE__
end