Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Forked from bryanwoods/verifiably_gross.rb
Created October 24, 2009 15:55
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 practicingruby/217589 to your computer and use it in GitHub Desktop.
Save practicingruby/217589 to your computer and use it in GitHub Desktop.
IMAGE_TYPES = %w( image/jpeg image/png image/pjpeg image/x-png image/gif )
validates_attachment_content_type :image, :content_type => IMAGE_TYPES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment