Sha256: b07497439f7fc728e9b97903eb9427e092b6933eb3bb1f05fdf32029ce18294d

Contents?: true

Size: 520 Bytes

Versions: 133

Compression:

Stored size: 520 Bytes

Contents

module SimpleForm
  module Components
    module Errors
      def error_text
        begin
          if object.errors.details[attribute_name].map(&:values).flatten.include? :blank
            return
          end
        rescue StandardError => e
          pg_err e
        end
        text = has_custom_error? ? options[:error] : errors.reject(&:empty?).send(error_method)
        return if text.blank?

        "#{html_escape(options[:error_prefix])} #{html_escape(text)}".lstrip.html_safe
      end
    end
  end
end

Version data entries

133 entries across 133 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.102 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.101 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.100 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.99 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.98 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.97 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.96 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.95 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.94 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.93 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.92 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.91 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.90 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.89 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.88 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.87 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.86 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.56 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.55 pg_engine/config/initializers/simple_form_monkey_patch.rb
pg_rails-7.0.8.pre.alpha.54 pg_engine/config/initializers/simple_form_monkey_patch.rb