pg_rails 7.0.8.pre.alpha.40 → 7.0.8.pre.alpha.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0c75ae98afcfa4e17e28f00db9876e5fe0aa2073a2ed596fb69f4f34511409e
4
- data.tar.gz: 5015d88ae570ea79dd08316aa2abdc9039b00ad34f2d4d19288a76cef25e8273
3
+ metadata.gz: 3d403c93bba96aff99b15c51782370786112e7985992d5cb457d5c217cfd8ef8
4
+ data.tar.gz: 805484f5704ec187fb8eae8e8cf690401e62864c8014498e68dc5ac16aedc6ef
5
5
  SHA512:
6
- metadata.gz: 4fe2178fed0e0d8938718d2cd75fed98b86c116bd682362528e70fd138e31fba9f6372fc1a03f26a5afd42f08278d846076bfcfdf55340720890aba02cefabf4
7
- data.tar.gz: e22997837342010977b73599a1082e141a22e63367911e5a7aeb884b7ae28109b04adcd70e45b395d6ea0f4e156b13adff7df2eb6c522269b143435ccc19a4ab
6
+ metadata.gz: 11cf0c29eb5fcc5be64cfd59a61808eb5378477a14e2c81a70e17fa3c5ec9d3ccbf6332396d046e73b547834668d28f16534be9c57a0e304726b6e6ef7c9fc0a
7
+ data.tar.gz: 1c0b40e8ac272a1d82894e5feb2084ee8b6be59efa9622f35aaf8c2e3583be9f2e19b3940eb5830dfaa920a7d419b0178d05ee6cee9a61414f6eac1dd79f7377
@@ -2,6 +2,13 @@ module SimpleForm
2
2
  module Components
3
3
  module Errors
4
4
  def error_text
5
+ begin
6
+ if object.errors.details[attribute_name].map(&:values).flatten.include? :blank
7
+ return
8
+ end
9
+ rescue StandardError => e
10
+ pg_err e
11
+ end
5
12
  text = has_custom_error? ? options[:error] : errors.reject(&:empty?).send(error_method)
6
13
  return if text.blank?
7
14
 
@@ -46,10 +46,10 @@ es:
46
46
  # prompts:
47
47
  # defaults:
48
48
  # age: 'Select your age'
49
- errors:
50
- messages:
51
- blank: ''
52
- empty: ''
49
+ # errors:
50
+ # messages:
51
+ # blank: ''
52
+ # empty: ''
53
53
  devise:
54
54
  sign_in: ¿Ya tenés una cuenta? Iniciar sesión
55
55
  sign_out: Cerrar sesión
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.40'
4
+ VERSION = '7.0.8-alpha.41'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.40
4
+ version: 7.0.8.pre.alpha.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso