Skip to content

Commit

Permalink
remove useless assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 28, 2011
1 parent 13e79eb commit 26caf32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activerecord/lib/active_record/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1542,9 +1542,8 @@ def initialize(attributes = nil, options = {})

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
Expand Down

0 comments on commit 26caf32

Please sign in to comment.