Sha256: dccec1b24b6364abccec19edbafca83fb6b2fa3abda3006768952a043e17cca1

Contents?: true

Size: 420 Bytes

Versions: 6

Compression:

Stored size: 420 Bytes

Contents

module Cmor
  module Carousels
    class ItemDetail < ApplicationRecord
      include ActsAsPublished::ActiveRecord

      belongs_to :carousel
      belongs_to :asset, class_name: 'ActiveStorage::Attachment', dependent: :destroy      

      acts_as_list scope: :carousel

      def human
        "#{carousel.class.model_name.human} #{carousel.human} - #{self.class.model_name.human} #{id}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cmor_carousels-0.0.6.pre app/models/cmor/carousels/item_detail.rb
cmor_carousels-0.0.5.pre app/models/cmor/carousels/item_detail.rb
cmor_carousels-0.0.4.pre app/models/cmor/carousels/item_detail.rb
cmor_carousels-0.0.3.pre app/models/cmor/carousels/item_detail.rb
cmor_carousels-0.0.2.pre app/models/cmor/carousels/item_detail.rb
cmor_carousels-0.0.1.pre app/models/cmor/carousels/item_detail.rb