Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created September 10, 2010 13:39
Show Gist options
  • Select an option

  • Save workmad3/573636 to your computer and use it in GitHub Desktop.

Select an option

Save workmad3/573636 to your computer and use it in GitHub Desktop.
module MyModule
def self.included(base)
base.instance_eval { validates_inclusion_of :type, :in => [:public, :private, :static] }
end
//rest of module here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment