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.15 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.36 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.14 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.35 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.13 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.34 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.12 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.33 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.11 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.10 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.32 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.9 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.31 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.8 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.30 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.7 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.29 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.6 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.4.28 lib/generators/workarea/product_template/templates/view_model.rb.erb
workarea-core-3.5.5 lib/generators/workarea/product_template/templates/view_model.rb.erb