Sha256: 7f361f9521ed12af40f02294048b4354c05882348cf1864260a27d0b3e3f62ab
Contents?: true
Size: 959 Bytes
Versions: 7
Compression:
Stored size: 959 Bytes
Contents
module Shop module Interface module Customers def self.included(base) base.send :include, InstanceMethods end module InstanceMethods attr_accessor :customers protected def load_default_shop_customers_regions returning OpenStruct.new do |customers| customers.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 customers.new = customers.edit customers.index = Radiant::AdminUI::RegionSet.new do |index| index.head.concat %w{buttons} index.body.concat %w{name modify} index.foot.concat %w{add} end customers.remove = customers.index end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems