Sha256: 0bdc072a5bdafd08f127324ba8e5bc9c37e42b77262d5b55da1e240b14b6c7a4
Contents?: true
Size: 974 Bytes
Versions: 30
Compression:
Stored size: 974 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{buttons pagination} end customers.remove = customers.index end end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems