From 68e8e9ea6f93d45729bd4ee720f6dc1c78245739 Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Tue, 1 Nov 2011 21:20:07 -0400 Subject: [PATCH] Remove extra @ignored_attributes assignments in subclasses of Proxy --- lib/factory_girl/proxy/attributes_for.rb | 1 - lib/factory_girl/proxy/stub.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/factory_girl/proxy/attributes_for.rb b/lib/factory_girl/proxy/attributes_for.rb index 5660a34..ae14f0c 100644 --- a/lib/factory_girl/proxy/attributes_for.rb +++ b/lib/factory_girl/proxy/attributes_for.rb @@ -4,7 +4,6 @@ module FactoryGirl def initialize(klass, callbacks = []) super @hash = {} - @ignored_attributes = {} end def get(attribute) diff --git a/lib/factory_girl/proxy/stub.rb b/lib/factory_girl/proxy/stub.rb index f875113..a557f79 100644 --- a/lib/factory_girl/proxy/stub.rb +++ b/lib/factory_girl/proxy/stub.rb @@ -6,7 +6,6 @@ module FactoryGirl def initialize(klass, callbacks = []) super @instance = klass.new - @ignored_attributes = {} @instance.id = next_id @instance.instance_eval do def persisted?