Sha256: ac46683e07ebf921cacd70a2308fc0dc6ec047690e1a30724f46588cf864bf7b
Contents?: true
Size: 861 Bytes
Versions: 6
Compression:
Stored size: 861 Bytes
Contents
module Enjoy module Admin module Gallery def self.config(fields = {}) Proc.new { # navigation_label I18n.t('enjoy.gallery') field :enabled, :toggle field :name, :string group :URL do active false field :slugs, :enum do enum_method do :slugs end visible do bindings[:view].current_user.admin? end multiple do true end end field :text_slug 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
6 entries across 6 versions & 1 rubygems