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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e761068c4438801df99438fc4420e4afad03320461ae0cef05dee8140c9b10f9
|
4
|
+
data.tar.gz: af3175fe0c8ebb13f3462b2410d3008c9daa34136253ad337cebee295d3aa953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
9
|
-
|
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
|
-
|
71
|
-
end
|
69
|
+
# def remember_me
|
70
|
+
# true
|
71
|
+
# end
|
72
72
|
|
73
73
|
scope :query, ->(param) { where('email ILIKE ?', "%#{param}%") }
|
74
74
|
|
@@ -10,7 +10,8 @@
|
|
10
10
|
<%= f.input :password,
|
11
11
|
required: false,
|
12
12
|
input_html: { autocomplete: "current-password" } %>
|
13
|
-
|
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">
|
data/pg_rails/lib/version.rb
CHANGED