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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b10c0027abbd150b13c0151f1c00fc808867db2507c392ae1553584ccc54c7fa
4
- data.tar.gz: c839f6004a12b70d8c28e19719185eb9a883290ee53f1b2da159138f9fff5021
3
+ metadata.gz: aadbece035188e276906c70783eedfd7fecfd18e3de9ea61294bc94139c7ae26
4
+ data.tar.gz: f996ec7231a046c9658d0db34dfed71257cf7fe8781e84cc7b337703a994018b
5
5
  SHA512:
6
- metadata.gz: 2046f277cc5103994b1c5f4d260fced6db73cf6ba8a46f03e9807aac59cbe535004fcbefeac65c6823ea0a71e756f1aa266870776a840fabe50b7678715b2ac1
7
- data.tar.gz: d3efc68090305c1214135747e7fa9dabe9a8478c4dc654c24a6be14d58130e296a575400468688168c96a96c09c749cec2cbd238db7217670e58276d16d58b83
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
- 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)
@@ -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.68'
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.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso