aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-06-28 10:57:56 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-06-28 10:57:56 -0700
commit26caf32949f40993409f71887b2490722749022a (patch)
tree1e4de6ca7cdb7354395e813eddf2dda7d6c28f84 /activerecord/lib/active_record/base.rb
parent13e79eb6c387f1af1551a53df1b5620e41c6da90 (diff)
downloadrails-26caf32949f40993409f71887b2490722749022a.tar.gz
rails-26caf32949f40993409f71887b2490722749022a.tar.bz2
rails-26caf32949f40993409f71887b2490722749022a.zip
remove useless assignment
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/lib/active_record/base.rb3
1 files changed, 1 insertions, 2 deletions
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