Sha256: dad675ea4f3f165cb81334e66f240a9f30344e87a27aba883a139ff25ab48e76

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

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{header form popups}
                edit.form.concat %w{name email meta parts}
                edit.bottom.concat %w{buttons timestamp}
              end
              customers.new = customers.edit
              customers.index = Radiant::AdminUI::RegionSet.new do |index|
                index.top
                index.bottom.concat %w{ add }
                index.thead.concat %w{ name modify }
                index.customer.concat %w{ name modify }
              end
              customers.remove = customers.index
            end
          end
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-shop-extension-0.10.0 lib/shop/interface/customers.rb