Sha256: 80df50add870490743ac4fe162a09d6bf0471a0aad52e14644b40e5c17ad27ef
Contents?: true
Size: 353 Bytes
Versions: 1
Compression:
Stored size: 353 Bytes
Contents
module Pwb class ContentPhoto < ApplicationRecord mount_uploader :image, ContentPhotoUploader belongs_to :content # validates_processing_of :image # validate :image_size_validation # private # def image_size_validation # errors[:image] << "should be less than 500KB" if image.size > 0.5.megabytes # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pwb-0.0.1 | app/models/pwb/content_photo.rb |