Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add respond_to_missing? on NullObject for 1.9 compatability

  • Loading branch information...
commit e038bf8eec078cd5958134749e5a30cc1942201b 1 parent 8d2b352
Joshua Clayton joshuaclayton authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/factory_girl/null_object.rb
4 lib/factory_girl/null_object.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.