Skip to content
Snippets Groups Projects
carousel.rb 251 B
Newer Older
class Carousel < ActiveRecord::Base
  has_attached_file :image, styles: {
    larger: "400x500>",
    thumbnail: "100x100>"
    }, default_url: "/images/:style/missing.png"
  validates_attachment_content_type :image, content_type: /\Aimage\/.*\Z/
end