aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-07-28 09:56:42 +0200
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:21 -0700
commit91ca214ca0aa431f3cbe90d660c22129b3584bc7 (patch)
tree81f1b45e069f70fc29243aa600dc8b305c6cd7ce /actionpack/lib
parent6e671a8536f17b6f23b5251652015ce8c1557f1f (diff)
downloadrails-91ca214ca0aa431f3cbe90d660c22129b3584bc7.tar.gz
rails-91ca214ca0aa431f3cbe90d660c22129b3584bc7.tar.bz2
rails-91ca214ca0aa431f3cbe90d660c22129b3584bc7.zip
Rename class method to_path to _to_path and make it explicit that it is an internal method.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 7ea2ea2d5a..85dea96bbb 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
+ def self._to_path
@_to_path ||= name.demodulize.underscore.sub!(/_builder$/, '')
end
def to_path
- self.class.to_path
+ self.class._to_path
end
def to_model