Browse files

Make Proxy::Stub#next_id private

  • Loading branch information...
1 parent 86f971b commit 0c31b6e6a323ddf22ed1b95aede218501f6839d4 @joshuaclayton joshuaclayton committed Nov 23, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/factory_girl/proxy/stub.rb
View
10 lib/factory_girl/proxy/stub.rb
@@ -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]
@@ -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.