diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-17 12:34:51 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-17 12:34:51 -0200 |
commit | 67df21f8954073ddc7f3409ec618c953f97cb412 (patch) | |
tree | 15985cf9a4ec9b0d7727f86363b435d73f365f31 | |
parent | f527f9097b20d4c6178bcdd70a2be11a129bc866 (diff) | |
download | rails-67df21f8954073ddc7f3409ec618c953f97cb412.tar.gz rails-67df21f8954073ddc7f3409ec618c953f97cb412.tar.bz2 rails-67df21f8954073ddc7f3409ec618c953f97cb412.zip |
No need for parenthesis here
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/read.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb index a487bcf78b..ad5a3e7562 100644 --- a/activerecord/lib/active_record/attribute_methods/read.rb +++ b/activerecord/lib/active_record/attribute_methods/read.rb @@ -85,7 +85,7 @@ module ActiveRecord def _read_attribute(attr_name) attr_name = attr_name.to_s attr_name = self.class.primary_key if attr_name == 'id' - if (value = @attributes[attr_name]) + if value = @attributes[attr_name] if column = column_for_attribute(attr_name) if unserializable_attribute?(attr_name, column) unserialize_attribute(attr_name) |