aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorGaurish Sharma <contact@gaurishsharma.com>2012-06-16 01:49:44 +0530
committerGaurish Sharma <contact@gaurishsharma.com>2012-06-16 01:49:44 +0530
commitb5cc89ae017c540e1921a14b560f845ff31b3a8f (patch)
tree1be284e9e5804125865344a36d27b614b34367bc /actionpack
parent62f6277c532625fdeace8cdf7a1ff87e60dcae74 (diff)
downloadrails-b5cc89ae017c540e1921a14b560f845ff31b3a8f.tar.gz
rails-b5cc89ae017c540e1921a14b560f845ff31b3a8f.tar.bz2
rails-b5cc89ae017c540e1921a14b560f845ff31b3a8f.zip
Add rdoc to phone_field
[API docs](http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-phone_field) for `phone_field` provide no information on what the method actually does. no description nor access to source code. so added this
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 7dd35f7357..7b1bb48718 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -979,6 +979,7 @@ module ActionView
def telephone_field(object_name, method, options = {})
Tags::TelField.new(object_name, method, self, options).render
end
+ # alias of telephone_field
alias phone_field telephone_field
# Returns a text_field of type "date".