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