Skip to content
This repository
Browse code

Add respond_to_missing? on NullObject for 1.9 compatability

  • Loading branch information...
commit e038bf8eec078cd5958134749e5a30cc1942201b 1 parent 8d2b352
Joshua Clayton authored July 27, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  lib/factory_girl/null_object.rb
4  lib/factory_girl/null_object.rb
@@ -16,5 +16,9 @@ def method_missing(name, *args, &block)
16 16
     def respond_to?(method, include_private=false)
17 17
       @methods_to_respond_to.include? method.to_s
18 18
     end
  19
+
  20
+    def respond_to_missing?(*args)
  21
+      false
  22
+    end
19 23
   end
20 24
 end

0 notes on commit e038bf8

Please sign in to comment.
Something went wrong with that request. Please try again.