1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Add respond_to_missing? on NullObject for 1.9 compatability

This commit is contained in:
Joshua Clayton 2012-07-27 10:14:57 -04:00
parent 8d2b352c48
commit e038bf8eec

View file

@ -16,5 +16,9 @@ module FactoryGirl
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