From 55f266df4f85e8176a806d2d58ac981051f12d5d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 30 Nov 2010 14:49:37 -0500 Subject: [PATCH] prevent the scope attributes to be overwritten --- activerecord/lib/active_record/base.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 6076aaf..659bf6e 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1374,8 +1374,8 @@ MSG ensure_proper_type - populate_with_current_scope_attributes self.attributes = attributes unless attributes.nil? + populate_with_current_scope_attributes result = yield self if block_given? _run_initialize_callbacks -- 1.7.3.1