Skip to content

Commit

Permalink
Add respond_to_missing? on NullObject for 1.9 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Jul 27, 2012
1 parent 8d2b352 commit e038bf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/factory_girl/null_object.rb
Expand Up @@ -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.