aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-11 15:39:26 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-11 15:39:26 -0800
commitfcd8925f236b391d562dc504bcd901f501140c11 (patch)
tree0e0f26167a4048b7302c5c57fef9bba69f93e8ed /activerecord/lib/active_record/base.rb
parent5696d948ed0eb9cf755e843564f80801ea864ee2 (diff)
downloadrails-fcd8925f236b391d562dc504bcd901f501140c11.tar.gz
rails-fcd8925f236b391d562dc504bcd901f501140c11.tar.bz2
rails-fcd8925f236b391d562dc504bcd901f501140c11.zip
use underlying _read_attribute method rather than causing NoMethodErrors
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index a5b71ba280..dde52269d4 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1578,7 +1578,7 @@ MSG
# Returns true if the specified +attribute+ has been set by the user or by a database load and is neither
# nil nor empty? (the latter only applies to objects that respond to empty?, most notably Strings).
def attribute_present?(attribute)
- !read_attribute(attribute).blank?
+ !_read_attribute(attribute).blank?
end
# Returns the column object for the named attribute.