Created
March 4, 2010 03:43
-
-
Save beccasaurus/321376 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Because dm-ar-finders likes to fuck your mother | |
module DataMapper::Model | |
def method_missing_with_less_stupidity name, *args, &block | |
extension_response = FactoryGirlExtensions.__method_missing(self, name, *args, &block) | |
if extension_response == :no_extension_found | |
super | |
else | |
extension_response | |
end | |
end | |
alias_method_chain :method_missing, :less_stupidity | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment