Sha256: 65caa8ed158f3b38683df8c90b1931d360f0fbdff1e417ba3236efa0fbd8ea21

Contents?: true

Size: 949 Bytes

Versions: 5

Compression:

Stored size: 949 Bytes

Contents

module Shop
  module Interface
    module Packages
      
      def self.included(base)
        base.send :include, InstanceMethods
      end
      
      module InstanceMethods
        attr_accessor :packages
        
        protected

        def load_default_shop_packages_regions
          returning OpenStruct.new do |packages|
            packages.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
            packages.new = packages.edit
            packages.index = Radiant::AdminUI::RegionSet.new do |index|
              index.head.concat %w{buttons}
              index.body.concat %w{name modify}
              index.foot.concat %w{add}
            end
            packages.remove = packages.index
          end
        end
      end
      
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
radiant-shop-extension-0.11.5 lib/shop/interface/packages.rb
radiant-shop-extension-0.11.4 lib/shop/interface/packages.rb
radiant-shop-extension-0.11.3 lib/shop/interface/packages.rb
radiant-shop-extension-0.11.1 lib/shop/interface/packages.rb
radiant-shop-extension-0.11.0 lib/shop/interface/packages.rb