Sha256: c9a37e81133b22c1eacc4536a72bae9656f4d19961c21ecb57030eca5e34afa3
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 Bytes
Contents
module Enjoy::Gallery module Admin module Image def self.config(nav_label = nil, without_gallery = false, fields = {}) Proc.new { navigation_label(nav_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, :enjoy_image nested_set({max_depth: 1, scopes: []}) Enjoy::RailsAdminGroupPatch::enjoy_cms_group(self, fields) if block_given? yield self end } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms_gallery-0.4.1 | lib/enjoy/gallery/admin/image.rb |
enjoy_cms_gallery-0.4.0.2 | lib/enjoy/gallery/admin/image.rb |
enjoy_cms_gallery-0.4.0.1 | lib/enjoy/gallery/admin/image.rb |