Sha256: af31f6d9a49f5cb96266d0c4edaacd015b8ba962d45cd32368cec33bfd52e928

Contents?: true

Size: 273 Bytes

Versions: 43

Compression:

Stored size: 273 Bytes

Contents

# TODO: rename to WarningComponent or sth
class BadUserInputComponent < BaseComponent
  def initialize(error_msg:)
    @error_msg = error_msg
    super
  end

  def alert_type
    :warning
  end

  erb_template <<~ERB
    <div>
      <%= @error_msg %>
    </div>
  ERB
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
pg_rails-7.6.28 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.27 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.26 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.25 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.24 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.24.pre.5 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.24.pre.4 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.24.pre.3 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.23 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.22 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.22.pre.3 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.22.pre.2 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.22.pre.1 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.21 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.21.pre.11 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.21.pre.10 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.21.pre.9 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.21.pre.8 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.21.pre.7 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.21.pre.6 pg_engine/app/components/bad_user_input_component.rb