Sha256: d8f8de092254ed2a72e1176eec8ba9ea15bbc262dfc93c10a08fe48cf25c8139
Contents?: true
Size: 971 Bytes
Versions: 3
Compression:
Stored size: 971 Bytes
Contents
module Enjoy::Gallery module Admin module Gallery def self.config(nav_label = nil, fields = {}) Proc.new { navigation_label(nav_label || I18n.t('enjoy.gallery')) field :enabled, :toggle do searchable false end field :name, :string do searchable true end group :URL do active false field :slugs, :enjoy_slugs field :text_slug end field :image, :enjoy_image # field :gallery_objects do # read_only true # end if defined?(RailsAdminMultipleFileUpload) multiple_file_upload( { fields: [:gallery_images] } ) end 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/gallery.rb |
enjoy_cms_gallery-0.4.0.2 | lib/enjoy/gallery/admin/gallery.rb |
enjoy_cms_gallery-0.4.0.1 | lib/enjoy/gallery/admin/gallery.rb |