Sha256: 5818d4479709fb85b44761f3bc4b770eb9c41700db5dc3b46016dbed06851895
Contents?: true
Size: 635 Bytes
Versions: 17
Compression:
Stored size: 635 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 validates :identifier, uniqueness: true, allow_nil: true 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
17 entries across 17 versions & 1 rubygems