app/models/ecm/galleries/picture_detail.rb in ecm_galleries-0.1.0 vs app/models/ecm/galleries/picture_detail.rb in ecm_galleries-0.2.0

- old
+ new

@@ -4,7 +4,17 @@ belongs_to :picture_gallery belongs_to :asset, class_name: 'ActiveStorage::Attachment', dependent: :destroy acts_as_list scope: :picture_gallery + + module DisplayCodesConcern + extend ActiveSupport::Concern + + def display_code_for_erb + "<%= pictures_helper(self).render(id: #{id}) %>" + end + end + + include DisplayCodesConcern end end