Permalink
Browse files

Add respond_to_missing? on NullObject for 1.9 compatability

  • Loading branch information...
1 parent 8d2b352 commit e038bf8eec078cd5958134749e5a30cc1942201b @joshuaclayton joshuaclayton committed Jul 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/factory_girl/null_object.rb
View
4 lib/factory_girl/null_object.rb
@@ -16,5 +16,9 @@ def method_missing(name, *args, &block)
def respond_to?(method, include_private=false)
@methods_to_respond_to.include? method.to_s
end
+
+ def respond_to_missing?(*args)
+ false
+ end
end
end

0 comments on commit e038bf8

Please sign in to comment.