Sha256: a3d53aec27a0edab17cb36b56a7662a34c789d2415eff752a6dff904e10de0c1

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

class Carousel::Slide < ActiveRecord::Base
  
  has_attached_file :slide, 
    :styles => {
                  :slide => "450x315#",
                  :edit_page => "150x150>"
               }
    
  attr_accessible :description,
                  :url,
                  :slide,
                  :title,
                  :sort
                  
  # -- Validations ----------------------------------------------------------
  
  validates :description,
            :url,
            :title,
            :sort,
    :presence => true
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfy_carousel-0.0.0 app/models/carousel/slide.rb