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.5.27 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.26 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.45 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.25 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.23 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.44 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.22 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.43 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.21 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.42 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.20 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.41 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.19 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.40 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.18 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.39 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.17 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.38 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.16 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.37 lib/generators/workarea/product_template/templates/view_model.rb.erb