diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-28 10:57:56 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-28 10:57:56 -0700 |
commit | 26caf32949f40993409f71887b2490722749022a (patch) | |
tree | 1e4de6ca7cdb7354395e813eddf2dda7d6c28f84 | |
parent | 13e79eb6c387f1af1551a53df1b5620e41c6da90 (diff) | |
download | rails-26caf32949f40993409f71887b2490722749022a.tar.gz rails-26caf32949f40993409f71887b2490722749022a.tar.bz2 rails-26caf32949f40993409f71887b2490722749022a.zip |
remove useless assignment
-rw-r--r-- | activerecord/lib/active_record/base.rb | 3 |
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 |