Sha256: 9aa7fa0eca9ed9ec600a1b72487bf81f61ce624cbe5baaaea8c7de820eb62708

Contents?: true

Size: 775 Bytes

Versions: 37

Compression:

Stored size: 775 Bytes

Contents

module Shop
  module Interface
    module Categories
      
      def self.included(base)
        base.send :include, InstanceMethods
      end
      
      module InstanceMethods
        attr_accessor :categories
        
        protected
                  
        def load_default_shop_categories_regions
          returning OpenStruct.new do |categories|
            categories.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
            categories.new = categories.edit
            categories.remove = categories.index
          end          
        end
      end
      
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
radiant-shop-extension-0.94.8 lib/shop/interface/categories.rb
radiant-shop-extension-0.94.7 lib/shop/interface/categories.rb
radiant-shop-extension-0.94.6 lib/shop/interface/categories.rb
radiant-shop-extension-0.94.5 lib/shop/interface/categories.rb
radiant-shop-extension-0.94.4 lib/shop/interface/categories.rb
radiant-shop-extension-0.94.3 lib/shop/interface/categories.rb
radiant-shop-extension-0.94.2 lib/shop/interface/categories.rb
radiant-shop-extension-0.94.1 lib/shop/interface/categories.rb
radiant-shop-extension-0.94.0 lib/shop/interface/categories.rb
radiant-shop-extension-0.93.3 lib/shop/interface/categories.rb
radiant-shop-extension-0.93.2 lib/shop/interface/categories.rb
radiant-shop-extension-0.93.1 lib/shop/interface/categories.rb
radiant-shop-extension-0.93.0 lib/shop/interface/categories.rb
radiant-shop-extension-0.92.11 lib/shop/interface/categories.rb
radiant-shop-extension-0.92.10 lib/shop/interface/categories.rb
radiant-shop-extension-0.92.9 lib/shop/interface/categories.rb
radiant-shop-extension-0.92.8 lib/shop/interface/categories.rb
radiant-shop-extension-0.92.7 lib/shop/interface/categories.rb
radiant-shop-extension-0.92.6 lib/shop/interface/categories.rb
radiant-shop-extension-0.92.3 lib/shop/interface/categories.rb