Sha256: ae9a22ce545b981a0991f0aee031246f231e4a12bab107d65659a6c383e886a8

Contents?: true

Size: 377 Bytes

Versions: 7

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

class <%= File.join(*[namespaced_path, file_path].compact).classify %>::Component < SolidusAdmin::BaseComponent
<%- if initialize_signature -%>
  def initialize(<%= initialize_signature %>)
    <%= initialize_body %>
  end
<%- end -%>
<% unless options['html'] %>
  erb_template <<~ERB
    <%= inline_html indent: '    ' %>
  ERB
<%- end -%>
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 lib/generators/solidus_admin/component/templates/component.rb.tt
solidus_admin-0.3.1 lib/generators/solidus_admin/component/templates/component.rb.tt
solidus_admin-0.3.0 lib/generators/solidus_admin/component/templates/component.rb.tt
solidus_admin-0.2.0 lib/generators/solidus_admin/component/templates/component.rb.tt
solidus_admin-0.1.0 lib/generators/solidus_admin/component/templates/component.rb.tt
solidus_admin-0.0.2 lib/generators/solidus_admin/component/templates/component.rb.tt
solidus_admin-0.0.1 lib/generators/solidus_admin/component/templates/component.rb.tt