Skip to content

Commit

Permalink
Remove extra @ignored_attributes assignments in subclasses of Proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Nov 2, 2011
1 parent 3803be3 commit 68e8e9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/factory_girl/proxy/attributes_for.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class AttributesFor < Proxy #:nodoc:
def initialize(klass, callbacks = [])
super
@hash = {}
@ignored_attributes = {}
end

def get(attribute)
Expand Down
1 change: 0 additions & 1 deletion lib/factory_girl/proxy/stub.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ class Stub < Proxy #:nodoc:
def initialize(klass, callbacks = [])
super
@instance = klass.new
@ignored_attributes = {}
@instance.id = next_id
@instance.instance_eval do
def persisted?
Expand Down

0 comments on commit 68e8e9e

Please sign in to comment.