Sha256: 98aeb642dee4cb38c9edcf2886e46e84d6d68df569bc62e0dcde6e49bd0cd4ba

Contents?: true

Size: 231 Bytes

Versions: 24

Compression:

Stored size: 231 Bytes

Contents

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

24 entries across 24 versions & 1 rubygems

Version Path
pg_rails-7.6.2 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.1 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.6.0 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.5.7 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.5.6 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.5.5 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.5.4 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.5.3 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.5.2 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.5.1 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.5.0 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.4.3 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.4.2 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.4.1 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.4.0 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.3.5 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.3.4 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.3.3 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.3.2 pg_engine/app/components/bad_user_input_component.rb
pg_rails-7.3.1 pg_engine/app/components/bad_user_input_component.rb