pg_rails 7.0.8.pre.alpha.67 → 7.0.8.pre.alpha.68
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/lib/pg_form_builder.rb +3 -2
- data/pg_rails/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aadbece035188e276906c70783eedfd7fecfd18e3de9ea61294bc94139c7ae26
|
4
|
+
data.tar.gz: f996ec7231a046c9658d0db34dfed71257cf7fe8781e84cc7b337703a994018b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93bf6af563e8835fcc7c936ad4ba2c77b3d0db0ddd298701c649e82d41eea0a22c6a86cd3fb1af3d2174d00fcf1a5afd986beaf4332b74cde27d8bd6965cfbe2
|
7
|
+
data.tar.gz: 116cd59c81fa16ba0bc223182556029a149fb4545b3d61a1f875e177a5a3517978cfa627c52cce7c009ca3920be85d228c9cc5d03f3417fb1bede88f4358eca7
|
@@ -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)
|
data/pg_rails/lib/version.rb
CHANGED