Sha256: c3f99251b5c2076abcad6bfa1e28fd22d8a62f5945b17d4b56c896817296eb8a
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
module Workarea decorate Catalog::Product, with: :product_content do decorated do # Place code to decorate here that would normally go on the class # level, e.g.: # # field :name, type: String include Contentable end class_methods do # Place methods to define on the class level here. These methods # will be available by calling Catalog::Product.your_method. Do # not prefix these methods with `self.` end # Instance methods can go right in the main definition of the # decorator, as it is a module that gets prepended into the class of # your choice. end end
Version data entries
3 entries across 3 versions & 1 rubygems