Sha256: 94cafe116cf348a06b2a36e6b7955d1f96315ee12d465b4151e9603018b6fcee

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

module Workarea
  module Storefront
    module ProductTemplates
      class ImageDecorationViewModel < 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

1 entries across 1 versions & 1 rubygems

Version Path
workarea-image_decoration-1.0.0.pre app/view_models/workarea/storefront/product_templates/image_decoration_view_model.rb