Sha256: 2122e924c21dc68057ea5588b12b3e839d5a36efae937cf929e7a935c95e3856

Contents?: true

Size: 731 Bytes

Versions: 5

Compression:

Stored size: 731 Bytes

Contents

module Enjoy
  module Admin
    module GalleryImage
      def self.config(without_gallery = false, fields = {})
        Proc.new {
          # navigation_label I18n.t('enjoy.gallery')
          field :enabled, :toggle do
            searchable false
          end
          unless without_gallery
            field :gallery do
              searchable :name
            end
          end
          field :name, :string do
            searchable true
          end
          field :image, :jcrop do
            jcrop_options :image_jcrop_options
          end

          Enjoy::RailsAdminGroupPatch::enjoy_cms_group(self, fields)

          if block_given?
            yield self
          end
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 lib/enjoy/admin/gallery_image.rb
enjoy_cms-0.3.7.3 lib/enjoy/admin/gallery_image.rb
enjoy_cms-0.3.7.2 lib/enjoy/admin/gallery_image.rb
enjoy_cms-0.3.7.1 lib/enjoy/admin/gallery_image.rb
enjoy_cms-0.3.7 lib/enjoy/admin/gallery_image.rb