Sha256: 4e106b81446d391e2bbb8bae98eff2b8515f8d3ef3da8f3271baa88c83f21d75

Contents?: true

Size: 351 Bytes

Versions: 5

Compression:

Stored size: 351 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

5 entries across 5 versions & 1 rubygems

Version Path
pwb-1.1.1 app/models/pwb/content_photo.rb
pwb-1.0.0 app/models/pwb/content_photo.rb
pwb-0.1.1 app/models/pwb/content_photo.rb
pwb-0.1.0 app/models/pwb/content_photo.rb
pwb-0.0.2 app/models/pwb/content_photo.rb