Skip to content

Commit

Permalink
Make Proxy::Stub#next_id private
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Nov 23, 2011
1 parent 86f971b commit 0c31b6e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/factory_girl/proxy/stub.rb
Expand Up @@ -42,10 +42,6 @@ def update_attribute(*args)
end
end

def next_id
@@next_id += 1
end

def get(attribute)
if @ignored_attributes.has_key?(attribute)
@ignored_attributes[attribute]
Expand All @@ -67,6 +63,12 @@ def result(to_create)
run_callbacks(:after_stub)
@instance
end

private

def next_id
@@next_id += 1
end
end
end
end

0 comments on commit 0c31b6e

Please sign in to comment.