Sha256: 59f11013f43ddf9cae4753b53a7b87cea089d1fa7431cf64267d01496c1dc993
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
module Enjoy module Admin module EmbeddedGalleryImage def self.config(fields = {}) jcrop_proc = Proc.new do jcrop_options :image_jcrop_options end fields = {image: [:jcrop, jcrop_proc]}.merge(fields) if block_given? Enjoy::Admin::EmbeddedElement.config(nil, fields) do |config| yield config end else Enjoy::Admin::EmbeddedElement.config(nil, fields) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms-0.2.0.3.2 | lib/enjoy/admin/embedded_gallery_image.rb |
enjoy_cms-0.2.0.3.1 | lib/enjoy/admin/embedded_gallery_image.rb |
enjoy_cms-0.2.0.3 | lib/enjoy/admin/embedded_gallery_image.rb |