Sha256: 13ee45e35b574840f1f906c10c588cebabd854429d1f65f3367c9b18e101bee1
Contents?: true
Size: 1.07 KB
Versions: 7
Compression:
Stored size: 1.07 KB
Contents
module Images module Interface module Admin module Images def self.included(base) base.class_eval do attr_accessor :image alias_method :images, :image protected def load_default_image_regions returning OpenStruct.new do |image| image.edit = Radiant::AdminUI::RegionSet.new do |edit| edit.top.concat %w{ title } edit.form_top.concat %w{ asset_image } edit.form.concat %w{ title drawer upload popups } edit.form_bottom.concat %w{ buttons timestamps } end image.new = image.edit image.index = Radiant::AdminUI::RegionSet.new do |index| index.attributes.concat %w{thumbnail title modify } index.bottom.concat %w{ create } index.paginate.concat %w{ pagination } end image.remove = image.index end end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems