Skip to content

Instantly share code, notes, and snippets.

@beccasaurus
Created March 4, 2010 03:43
Show Gist options
  • Save beccasaurus/321376 to your computer and use it in GitHub Desktop.
Save beccasaurus/321376 to your computer and use it in GitHub Desktop.
# 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