Sha256: d4b40fb5c0483a4f07de7c923f16b18066c7007338cb80d3c745af726f28e7be
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
module Enjoy::Gallery module Models module Image extend ActiveSupport::Concern include Enjoy::Model include Enjoy::Enableable include Enjoy::Gallery::Paperclipable include Enjoy::Gallery.orm_specific('Image') included do belongs_to :gallery, class_name: "Enjoy::Gallery::Gallery" acts_as_nested_set enjoy_cms_attached_file(:image) 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/image.rb |