Sha256: 6b8dc82a625acf5da2f79cd6849644b85902bafd115765505053be734412b5da
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
module Shop module Interface module Products def self.included(base) base.send :include, InstanceMethods end module InstanceMethods attr_accessor :products protected def load_default_shop_products_regions returning OpenStruct.new do |products| products.edit = Radiant::AdminUI::RegionSet.new do |edit| edit.main.concat %w{head form popups} edit.form.concat %w{inputs meta parts foot} edit.foot.concat %w{buttons timestamp} end products.new = products.edit products.index = Radiant::AdminUI::RegionSet.new do |index| index.head.concat %w{buttons} index.category.concat %w{move name handle modify} index.products.concat %w{body} index.product.concat %w{move icon name sku modify} index.foot.concat %w{add} end products.remove = products.index end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems