mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ActiveRecord::Core#initialize: improve performance
This commit is contained in:
parent
29094c0788
commit
791251bf8b
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ module ActiveRecord
|
|||
assign_attributes(attributes, options) if attributes
|
||||
|
||||
yield self if block_given?
|
||||
run_callbacks :initialize
|
||||
run_callbacks :initialize if _initialize_callbacks.any?
|
||||
end
|
||||
|
||||
# Initialize an empty model object from +coder+. +coder+ must contain
|
||||
|
|
Loading…
Reference in a new issue