diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2012-03-15 10:24:13 +0200 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2012-03-15 10:24:13 +0200 |
commit | 791251bf8b95debf2c3af61f1b675a30d1abf3fd (patch) | |
tree | 047e9258cf8c9fe7fd38339cb7c7fe81b0bc9ab5 /activerecord/lib | |
parent | 29094c07884d1efe26a70bd586ddbc5bad995649 (diff) | |
download | rails-791251bf8b95debf2c3af61f1b675a30d1abf3fd.tar.gz rails-791251bf8b95debf2c3af61f1b675a30d1abf3fd.tar.bz2 rails-791251bf8b95debf2c3af61f1b675a30d1abf3fd.zip |
ActiveRecord::Core#initialize: improve performance
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index 46aababfb6..9a2f859fc7 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -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 |