Skip to content

Instantly share code, notes, and snippets.

@kaiwren
Created September 6, 2010 08:21
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 kaiwren/566789 to your computer and use it in GitHub Desktop.
Save kaiwren/566789 to your computer and use it in GitHub Desktop.
class ActiveRecord::Base
def self.ignore_fields(fields)
self.class_eval do
define_method(:ignore_fields) do
*fields
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment