diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-19 16:39:56 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-19 16:39:56 +0000 |
commit | dad37cfafa65a9f0ed2d0db6473c1d6b323dcdfe (patch) | |
tree | dc3804304bf039955989bd86d98990b40b6b9be9 /activerecord | |
parent | 69cb942d9b72d9a18f8d00c5887f2532bdda0a0f (diff) | |
download | rails-dad37cfafa65a9f0ed2d0db6473c1d6b323dcdfe.tar.gz rails-dad37cfafa65a9f0ed2d0db6473c1d6b323dcdfe.tar.bz2 rails-dad37cfafa65a9f0ed2d0db6473c1d6b323dcdfe.zip |
FormHelper should only use *_before_type_cast if they available on the model
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 58a1ac5787..0f07af2d09 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -532,6 +532,7 @@ module ActiveRecord #:nodoc: methods[attr.to_sym] = true methods["#{attr}=".to_sym] = true methods["#{attr}?".to_sym] = true + methods["#{attr}_before_type_cast".to_sym] = true methods end end |