Sha256: 309521e1fbbd7fd0417fd4ab0d9936e2a5be1f8b614d05a624122b30810453d4

Contents?: true

Size: 270 Bytes

Versions: 105

Compression:

Stored size: 270 Bytes

Contents

class BaseComponent < ViewComponent::Base
  def alert_wrapped(view_context)
    AlertComponent.new(type: alert_type)
                  .with_content(render_in(view_context))
  end

  def alert_type
    # :nocov:
    raise 'implement in subclass'
    # :nocov:
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
pg_rails-7.6.23 pg_engine/app/components/base_component.rb
pg_rails-7.6.22 pg_engine/app/components/base_component.rb
pg_rails-7.6.22.pre.3 pg_engine/app/components/base_component.rb
pg_rails-7.6.22.pre.2 pg_engine/app/components/base_component.rb
pg_rails-7.6.22.pre.1 pg_engine/app/components/base_component.rb
pg_rails-7.6.21 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.11 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.10 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.9 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.8 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.7 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.6 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.5 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.4 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.3 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.2 pg_engine/app/components/base_component.rb
pg_rails-7.6.21.pre.1 pg_engine/app/components/base_component.rb
pg_rails-7.6.20 pg_engine/app/components/base_component.rb
pg_rails-7.6.19 pg_engine/app/components/base_component.rb
pg_rails-7.6.18 pg_engine/app/components/base_component.rb