Sha256: cca3ce9938b5e844da04701daf7df002e174a911bf2abe843a30ee6622b1a887

Contents?: true

Size: 230 Bytes

Versions: 8

Compression:

Stored size: 230 Bytes

Contents

# frozen_string_literal: true
module C
  class Image < ApplicationRecord
    include Orderable

    validates :image, presence: true
    belongs_to :imageable, polymorphic: true

    mount_uploader :image, ImageUploader
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/models/c/image.rb
cd2_catton_cms-1.1.34 app/models/c/image.rb
cd2_catton_cms-1.1.33 app/models/c/image.rb
cd2_catton_cms-1.1.32 app/models/c/image.rb
cd2_catton_cms-1.1.31 app/models/c/image.rb
cd2_catton_cms-1.1.30 app/models/c/image.rb
cd2_catton_cms-1.1.20 app/models/c/image.rb
cd2_catton_cms-1.1.10 app/models/c/image.rb