Sha256: 0ff5de87e31a266a2d20d99869e534e00a2ee4a0d5901cfd1d4f9e3a73c9c05e

Contents?: true

Size: 382 Bytes

Versions: 62

Compression:

Stored size: 382 Bytes

Contents

module Workarea
  module Storefront
    module ContentBlocks
      class <%= class_name %>ViewModel < ContentBlockViewModel
        # Custom local variables passed into the view template.
        #
        # @return [Hash]
        def locals
          super.merge(type: '<%= block_name %>')
        end

        # TODO: Add more custom view model logic.
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.15 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.36 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.14 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.35 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.13 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.34 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.12 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.33 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.11 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.10 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.32 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.9 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.31 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.8 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.30 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.7 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.29 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.6 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.4.28 lib/generators/workarea/content_block_type/templates/view_model.rb.erb
workarea-core-3.5.5 lib/generators/workarea/content_block_type/templates/view_model.rb.erb