Sha256: 23de12c7a10b9f0df87210fadbce6ba2dd165a56e9a3bda3f53289bf41ecec82
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
module Hancock::Gallery::Decorators module EmbeddedImage extend ActiveSupport::Concern included do # # after_save :image_auto_rails_admin_jcrop # def image_auto_rails_admin_jcrop # auto_rails_admin_jcrop(:image) # or nil for cancel autocrop # end # # hancock_cms_attached_file(:image) # def image_styles # super # end # def image_jcrop_options # super # end ############# rails_admin ############## # def self.rails_admin_add_fields # [] #super # end # # def self.rails_admin_add_config(config) # #super(config) # end # # def self.admin_can_user_defined_actions # [].freeze # end # def self.admin_cannot_user_defined_actions # [].freeze # end # def self.manager_can_user_defined_actions # [].freeze # end # def self.manager_cannot_user_defined_actions # [].freeze # end # def self.rails_admin_user_defined_visible_actions # [].freeze # end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms_gallery-1.0.2 | app/models/concerns/hancock/gallery/decorators/embedded_image.rb |
hancock_cms_gallery-1.0.0 | app/models/concerns/hancock/gallery/decorators/embedded_image.rb |