From 19bea9f1bd03b4601bf4c38539bff993d3eebc39 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Wed, 14 Dec 2011 15:31:02 +0000 Subject: Stop the build asploding on 1.8.7 --- activerecord/lib/active_record/attribute_methods/read.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb index 0ca627638a..77bf9d0905 100644 --- a/activerecord/lib/active_record/attribute_methods/read.rb +++ b/activerecord/lib/active_record/attribute_methods/read.rb @@ -105,6 +105,8 @@ module ActiveRecord # Returns the value of the attribute identified by attr_name after it has been typecast (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) + return unless attr_name + attr_name = attr_name.to_s methods = self.class.generated_external_attribute_methods -- cgit v1.2.3