Sha256: 7e7c9a6599dc7e70efae0d5457a4caa469c5e5a46301c66413437186826082ea

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

class Image < ActiveRecord::Base
  include ValidatesAsImage
  
  has_attached_file :image, :styles => { :medium => "300x300>", :thumb => "100x100>" }, :whiny => false
  validates_attachment_presence :image, :message => I18n.t('activerecord.errors.models.image.attributes.image.blank')
  validates_as_image :image
  validates_presence_of :title
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merrycms-0.1.7 app/models/image.rb
merrycms-0.1.4 app/models/image.rb