pg_rails 7.0.8.pre.alpha.67 → 7.0.8.pre.alpha.69

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: b10c0027abbd150b13c0151f1c00fc808867db2507c392ae1553584ccc54c7fa
4
- data.tar.gz: c839f6004a12b70d8c28e19719185eb9a883290ee53f1b2da159138f9fff5021
3
+ metadata.gz: e761068c4438801df99438fc4420e4afad03320461ae0cef05dee8140c9b10f9
4
+ data.tar.gz: af3175fe0c8ebb13f3462b2410d3008c9daa34136253ad337cebee295d3aa953
5
5
  SHA512:
6
- metadata.gz: 2046f277cc5103994b1c5f4d260fced6db73cf6ba8a46f03e9807aac59cbe535004fcbefeac65c6823ea0a71e756f1aa266870776a840fabe50b7678715b2ac1
7
- data.tar.gz: d3efc68090305c1214135747e7fa9dabe9a8478c4dc654c24a6be14d58130e296a575400468688168c96a96c09c749cec2cbd238db7217670e58276d16d58b83
6
+ metadata.gz: fbab7d3534ab2b8a8bec86b0fce534f556cf8383bc77c7edf6918ee1e6e39915b6182e2d4d8a9fdda3647fe606c8e461a820e5de450332640de18d675173743d
7
+ data.tar.gz: 3304f09d8a1d1db68d93e7fa47f442c34c8f0acca8bbbc195a2c6878146e9da3cc55abadad849414055e051d9dce0e84b7e326be2abd1d39073abb3797c5f20d
@@ -5,8 +5,9 @@ class PgFormBuilder < SimpleForm::FormBuilder
5
5
  include PgEngine::ErrorHelper
6
6
 
7
7
  def default_prefix(attribute_name)
8
- at_name = object.class.human_attribute_name(attribute_name.to_s).downcase
9
- "#{articulo(attribute_name)} #{at_name}"
8
+ attribute_name = attribute_name.to_s.sub /_id\z/, ''
9
+ at_name_human = object.class.human_attribute_name(attribute_name).downcase
10
+ "#{articulo(attribute_name)} #{at_name_human}"
10
11
  end
11
12
 
12
13
  def articulo(attribute_name)
@@ -66,9 +66,9 @@ class User < ApplicationRecord
66
66
  !persisted? || !password.nil? || !password_confirmation.nil?
67
67
  end
68
68
 
69
- def remember_me
70
- true
71
- end
69
+ # def remember_me
70
+ # true
71
+ # end
72
72
 
73
73
  scope :query, ->(param) { where('email ILIKE ?', "%#{param}%") }
74
74
 
@@ -80,7 +80,7 @@ es:
80
80
  activerecord:
81
81
  attributes:
82
82
  user:
83
- remember_me: Mantener sesión abierta
83
+ remember_me: Mantener sesión abierta en este navegador
84
84
  email:
85
85
  from_name: Remitente
86
86
  to: Destinatario
@@ -10,7 +10,8 @@
10
10
  <%= f.input :password,
11
11
  required: false,
12
12
  input_html: { autocomplete: "current-password" } %>
13
- <%= f.input :remember_me, as: :hidden if devise_mapping.rememberable? %>
13
+ <%#= f.input :remember_me, as: :hidden if devise_mapping.rememberable? %>
14
+ <%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %>
14
15
  </div>
15
16
 
16
17
  <div class="form-actions">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.67'
4
+ VERSION = '7.0.8-alpha.69'
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.67
4
+ version: 7.0.8.pre.alpha.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso