Sha256: 084c2e10c942b7438fe35e4bda7bfcec6c4e5d16746c635a8a2b3bd3f97b350a
Contents?: true
Size: 954 Bytes
Versions: 7
Compression:
Stored size: 954 Bytes
Contents
module ShopVariants module Interface module Variants def self.included(base) base.send :include, InstanceMethods end module InstanceMethods attr_accessor :variants protected def load_default_shop_variants_regions returning OpenStruct.new do |variants| variants.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 variants.new = variants.edit variants.index = Radiant::AdminUI::RegionSet.new do |index| index.head.concat %w{} index.body.concat %w{name modify} index.foot.concat %w{buttons} end variants.remove = variants.index end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems