From 26caf32949f40993409f71887b2490722749022a Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 28 Jun 2011 10:57:56 -0700 Subject: remove useless assignment --- activerecord/lib/active_record/base.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activerecord/lib/active_record/base.rb') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 82687fce9d..ebea4252f9 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1542,9 +1542,8 @@ MSG assign_attributes(attributes, options) if attributes - result = yield self if block_given? + yield self if block_given? run_callbacks :initialize - result end # Populate +coder+ with attributes about this record that should be -- cgit v1.2.3