aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-07-28 09:56:42 +0200
committerJosé Valim <jose.valim@gmail.com>2011-07-28 09:56:42 +0200
commitdee81155395658880ea125426036425250849298 (patch)
tree144ef0c56a418b0bf60dd9d5bfdc50b1d8482843 /actionpack/lib
parent1b7db58a0604b01cd5c3a8d73b11158a48e45772 (diff)
downloadrails-dee81155395658880ea125426036425250849298.tar.gz
rails-dee81155395658880ea125426036425250849298.tar.bz2
rails-dee81155395658880ea125426036425250849298.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