Sha256: 5799255f0cca17d948ae0016a9b12d4fc56296372ded932f339a50785540e5c5
Contents?: true
Size: 702 Bytes
Versions: 9
Compression:
Stored size: 702 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 unless without_gallery field :gallery end field :name, :string field :image, :jcrop do jcrop_options :image_jcrop_options end fields.each_pair do |name, type| if type.nil? field name else field name, type end end if block_given? yield self end } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems