Skip to content

Instantly share code, notes, and snippets.

@myabc
Created February 26, 2010 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myabc/315704 to your computer and use it in GitHub Desktop.
Save myabc/315704 to your computer and use it in GitHub Desktop.
DataMapper::Resource.module_eval do
def has_attribute?(attribute)
attributes.include?(attribute)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment