aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/active_record_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-19 11:25:55 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-19 11:25:55 +0000
commit7b5ed66122873eebb773a6418f3a94d946cc4f8c (patch)
tree63c77291a6c78c7446bb5041b062bc8485a0fb5f /actionpack/lib/action_view/helpers/active_record_helper.rb
parent61960e7b37767140e9af68bd5373e06dce08492d (diff)
downloadrails-7b5ed66122873eebb773a6418f3a94d946cc4f8c.tar.gz
rails-7b5ed66122873eebb773a6418f3a94d946cc4f8c.tar.bz2
rails-7b5ed66122873eebb773a6418f3a94d946cc4f8c.zip
Added respondence to *_before_type_cast for all attributes to return their string-state before they were type casted by the column type. Added use of *_before_type_cast for all input and text fields.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/active_record_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/active_record_helper.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/active_record_helper.rb b/actionpack/lib/action_view/helpers/active_record_helper.rb
index 07ede179e6..6855fa49c5 100644
--- a/actionpack/lib/action_view/helpers/active_record_helper.rb
+++ b/actionpack/lib/action_view/helpers/active_record_helper.rb
@@ -132,7 +132,6 @@ module ActionView
end
alias_method :tag_without_error_wrapping, :tag
-
def tag(name, options)
if object.respond_to?("errors") && object.errors.respond_to?("on")
error_wrapping(tag_without_error_wrapping(name, options), object.errors.on(@method_name))
@@ -142,7 +141,6 @@ module ActionView
end
alias_method :content_tag_without_error_wrapping, :content_tag
-
def content_tag(name, value, options)
if object.respond_to?("errors") && object.errors.respond_to?("on")
error_wrapping(content_tag_without_error_wrapping(name, value, options), object.errors.on(@method_name))