Sha256: 82e1eeb327f927d693fd51a6788cc9f9e03fb057d2e9d498c6e44082afa928d5
Contents?: true
Size: 571 Bytes
Versions: 40
Compression:
Stored size: 571 Bytes
Contents
module Cmor module Galleries class PictureDetail < ApplicationRecord include ActsAsPublished::ActiveRecord belongs_to :picture_gallery belongs_to :asset, class_name: 'ActiveStorage::Attachment', dependent: :destroy acts_as_list scope: :picture_gallery def human title || id end module DisplayCodesConcern extend ActiveSupport::Concern def display_code_for_erb "<%= pictures_helper(self).render(id: #{id}) %>" end end include DisplayCodesConcern end end end
Version data entries
40 entries across 40 versions & 1 rubygems