brick 1.0.166 → 1.0.167

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: 04daac2a29417d6243839a369b82f47ce12b380e53751a8f2374239962af887e
4
- data.tar.gz: ff3c520f128963490cfbae81aee29ac3875bc819df113ad29cef09b625d0275b
3
+ metadata.gz: dc6c27a0806fb3e263addc8e33b18974c93521c5cf3da264712e0188e3b010e3
4
+ data.tar.gz: 2dd3e67605b0a9e6300b13a00ef602bd34c9fd0dd57e4b7049c2d201a9fd5b04
5
5
  SHA512:
6
- metadata.gz: 10e4983d3ebcc5e965e85784b38e3eff05b30a05fb46dd442560fc8845d097f95b3b3f4b4662e70238983b3f948c83647acc4919f521f49f9405b7f5bd71895d
7
- data.tar.gz: 56e5e5afa63fa991321881dc0b2c703ddd2d4a0b88d5856db3b272e36ad66abdfe1ea89e8d203ba6c56851a3ca4727c3e8c68daadc43888d59fea2ff095961ae
6
+ metadata.gz: 0ba147231b645bf1596997f65b0b084a39e950d9ecc4f516298664366c22c7ab1b521e6b27e57f2c4aec796cd36bc91ef0e49aa382cec14169c940ce626d3c39
7
+ data.tar.gz: 8cc67c037362574ff41ed8c2d0a644975c222d3ce9d5b41e813158a3d389e69395f613d994e894ee1c078c1f96205e073b63c65b7e4f5700dee94addb1a24b61
@@ -66,7 +66,7 @@ module Brick::Rails::FormTags
66
66
  s << " title=\"#{col.comment}\"" if col.respond_to?(:comment) && !col.comment.blank?
67
67
  s << if (bt = bts[col_name])
68
68
  # Allow sorting for any BT except polymorphics
69
- x_order = " x-order=\"#{bt.first.to_s + '"'}" unless bt[2]
69
+ x_order = " x-order=\"#{bt.first}\"" unless bt[2]
70
70
  "#{x_order}>BT #{bt[1].map { |bt_pair| bt_pair.first.bt_link(bt.first) }.join(' ')}"
71
71
  else # Normal column
72
72
  col_name_humanised = klass.human_attribute_name(col_name, { default: col_name })
@@ -83,11 +83,11 @@ module Brick::Rails::FormTags
83
83
  x_order = " x-order=\"#{col_name}\"" if true
84
84
  s << "#{x_order}>#{col_name}"
85
85
  elsif col_name.is_a?(Symbol) && (hot = bts[col_name]) # has_one :through
86
- x_order = " x-order=\"#{hot.first.to_s}\"" if true
86
+ x_order = " x-order=\"#{hot.first}\"" if true
87
87
  s << "#{x_order}>HOT " +
88
88
  hot[1].map { |hot_pair| hot_pair.first.bt_link(col_name) }.join(' ')
89
89
  elsif (bt = composite_bt_names[col_name])
90
- x_order = " x-order=\"#{bt.first.to_s}\"" unless bt[2]
90
+ x_order = " x-order=\"#{bt.first}\"" unless bt[2]
91
91
  s << "#{x_order}>BT comp " +
92
92
  bt[1].map { |bt_pair| bt_pair.first.bt_link(bt.first) }.join(' ')
93
93
  else # Bad column name!
@@ -5,7 +5,7 @@ module Brick
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- TINY = 166
8
+ TINY = 167
9
9
 
10
10
  # PRE is nil unless it's a pre-release (beta, RC, etc.)
11
11
  PRE = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.166
4
+ version: 1.0.167
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorin Thwaits