Sha256: 850c087b1dac595e1c2077b7a07173e8c99cb6c6a0aa4c18de556100935c912a
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 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 search } index.paginate.concat %w{ pagination } end image.searchearch = image.index image.remove = image.index end end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems