diff options
author | Jamis Buck <jamis@37signals.com> | 2005-07-05 12:38:06 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-07-05 12:38:06 +0000 |
commit | 56c3d72aa75dd286e35a220f53297e043e799ab2 (patch) | |
tree | 9089e9015dcd7c5a802cf27415811eff2960aa9b /activerecord/lib/active_record/base.rb | |
parent | 56fa64e995744aedaf13981e8ebddc5b9b488834 (diff) | |
download | rails-56c3d72aa75dd286e35a220f53297e043e799ab2.tar.gz rails-56c3d72aa75dd286e35a220f53297e043e799ab2.tar.bz2 rails-56c3d72aa75dd286e35a220f53297e043e799ab2.zip |
Fix regression from [1631] that caused an attribute to be set to nil if it was assigned false
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 183aae280f..3b5f9b94db 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1200,7 +1200,7 @@ module ActiveRecord #:nodoc: # Returns the value of attribute identified by <tt>attr_name</tt> after it has been type cast (for example, # "2004-12-12" in a data column is cast to a date object, like Date.new(2004, 12, 12)). def read_attribute(attr_name) - if value = @attributes[attr_name] + if !(value = @attributes[attr_name]).nil? if column = column_for_attribute(attr_name) if unserializable_attribute?(attr_name, column) unserialize_attribute(attr_name) |