aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2011-01-09 10:15:05 -0800
committerSantiago Pastorino <santiago@wyeworks.com>2011-01-31 19:45:53 -0200
commit57bc25c5f8129f57b08a2dc7c319b86778dd8a40 (patch)
tree4e21728c5dd1866f654ed88d169552a77fa6483b /activerecord/lib/active_record/base.rb
parent9666b6a625c9fef555c2a18df6721fed2000f131 (diff)
downloadrails-57bc25c5f8129f57b08a2dc7c319b86778dd8a40.tar.gz
rails-57bc25c5f8129f57b08a2dc7c319b86778dd8a40.tar.bz2
rails-57bc25c5f8129f57b08a2dc7c319b86778dd8a40.zip
Use run_callbacks; the generated _run_<name>_callbacks method is not a public interface.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/lib/active_record/base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 00324b14f2..220d861a27 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1400,7 +1400,7 @@ MSG
self.attributes = attributes unless attributes.nil?
result = yield self if block_given?
- _run_initialize_callbacks
+ run_callbacks :initialize
result
end
@@ -1437,8 +1437,8 @@ MSG
@aggregation_cache = {}
@readonly = @destroyed = @marked_for_destruction = false
@new_record = false
- _run_find_callbacks
- _run_initialize_callbacks
+ run_callbacks :find
+ run_callbacks :initialize
end
# Specifies how the record is dumped by +Marshal+.