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