Sha256: e1e8fac48cfebb6ecb273c4894ae7eebe6e9140699b5f098a98757e6221f6503

Contents?: true

Size: 1.06 KB

Versions: 9

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{}
              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{buttons}
            end
            products.remove = products.index
          end
        end
      end
      
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
radiant-shop-extension-0.91.7 lib/shop/interface/products.rb
radiant-shop-extension-0.91.4 lib/shop/interface/products.rb
radiant-shop-extension-0.91.3 lib/shop/interface/products.rb
radiant-shop-extension-0.91.2 lib/shop/interface/products.rb
radiant-shop-extension-0.90.4 lib/shop/interface/products.rb
radiant-shop-extension-0.90.2 lib/shop/interface/products.rb
radiant-shop-extension-0.90.1 lib/shop/interface/products.rb
radiant-shop-extension-0.90.0 lib/shop/interface/products.rb
radiant-shop-extension-0.11.6 lib/shop/interface/products.rb