Sha256: dcd350221aec1fc8b1ddc44db876798afc544b3caafccfea7587d2e8258b1300
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
module Enjoy module Admin module Gallery def self.self.config Proc.new { # navigation_label I18n.t('enjoy.gallery') field :enabled, :toggle field :name, :string 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 field :image, :jcrop do jcrop_options :image_jcrop_options end if block_given? yield self end } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms-0.2.0.3 | lib/enjoy/admin/gallery.rb |