Sha256: f38377590f51f2aed4a535a5bf1469cd3ebb18719dbab69799d2f85fabb056e3

Contents?: true

Size: 269 Bytes

Versions: 20

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

require "carrierwave"
require "carrierwave/orm/activerecord"

class Resource < ApplicationRecord
  belongs_to :blog
  belongs_to :content, optional: true

  mount_uploader :upload, ResourceUploader
  validates :upload, presence: true
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
HornsAndHooves-publify_core-10.5.0 app/models/resource.rb
HornsAndHooves-publify_core-10.4.0 app/models/resource.rb
HornsAndHooves-publify_core-10.3.0 app/models/resource.rb
HornsAndHooves-publify_core-10.2.0 app/models/resource.rb
HornsAndHooves-publify_core-10.1.1 app/models/resource.rb
HornsAndHooves-publify_core-10.1.0 app/models/resource.rb
HornsAndHooves-publify_core-10.0.3 app/models/resource.rb
HornsAndHooves-publify_core-10.0.2 app/models/resource.rb
HornsAndHooves-publify_core-10.0.1 app/models/resource.rb
HornsAndHooves-publify_core-10.0.0 app/models/resource.rb
publify_core-9.2.9 app/models/resource.rb
publify_core-9.2.8 app/models/resource.rb
publify_core-9.2.7 app/models/resource.rb
publify_core-9.2.6 app/models/resource.rb
publify_core-9.2.5 app/models/resource.rb
publify_core-9.2.4 app/models/resource.rb
publify_core-9.2.3 app/models/resource.rb
publify_core-9.2.2 app/models/resource.rb
publify_core-9.2.1 app/models/resource.rb
publify_core-9.2.0 app/models/resource.rb