Sha256: ce47cb1b8c05be12b313ecfd6cc3d02fd8d5d6982c63377ea94d8745fe168e59

Contents?: true

Size: 356 Bytes

Versions: 62

Compression:

Stored size: 356 Bytes

Contents

module Workarea
  module Storefront
    module ProductTemplates
      class <%= class_name %>ViewModel < ProductViewModel

        # Override method from model in order to
        # prepend the template type to the name of
        # the product.
        #
        def name
          [template, model.name].join(' ')
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.12 lib/generators/workarea/product_template/templates/view_model.rb.erb