aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-08-01 11:42:00 +0200
committerJosé Valim <jose.valim@gmail.com>2011-08-01 11:42:00 +0200
commitdc8773b19f61af2ba818d66923fc65e17bad6c20 (patch)
treebfc4089cd48db0caeddd550dc56db49b799ee1e0 /actionpack/lib/action_view/helpers/form_helper.rb
parentd701b3fa470b53a56da131cf64b96e411178bc08 (diff)
downloadrails-dc8773b19f61af2ba818d66923fc65e17bad6c20.tar.gz
rails-dc8773b19f61af2ba818d66923fc65e17bad6c20.tar.bz2
rails-dc8773b19f61af2ba818d66923fc65e17bad6c20.zip
Rename new method to_path to to_partial_path to avoid conflicts with File#to_path and similar.
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 85dea96bbb..f22c466666 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -1227,12 +1227,12 @@ module ActionView
parent_builder.multipart = multipart if parent_builder
end
- def self._to_path
- @_to_path ||= name.demodulize.underscore.sub!(/_builder$/, '')
+ def self._to_partial_path
+ @_to_partial_path ||= name.demodulize.underscore.sub!(/_builder$/, '')
end
- def to_path
- self.class._to_path
+ def to_partial_path
+ self.class._to_partial_path
end
def to_model