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