Sha256: 5cec1a9acdfe422d72f4498c159b58a36d75dfd0b7087ed998c01b70b8c3aaaf

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

module Enjoy::Gallery
  module Models
    module Gallery
      extend ActiveSupport::Concern
      include Enjoy::Model
      include ManualSlug
      include Enjoy::Enableable
      include Enjoy::Gallery::Paperclipable

      include Enjoy::Gallery.orm_specific('Gallery')

      included do
        manual_slug :name

        has_many :gallery_images, class_name: "Enjoy::Gallery::Image"
        alias :images :gallery_images

        acts_as_nested_set

        enjoy_cms_attached_file(:image)

        # has_many :connected_objects, as: :enjoy_gallerable

        after_save do
          auto_rails_admin_jcrop(:image)
        end
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enjoy_cms_gallery-0.4.1 lib/enjoy/gallery/models/gallery.rb