brick 1.0.164 → 1.0.165

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: 954b8c68167f01f4c6c05b2a9e7f0956122001e72523c5c2222b7da97370f11c
4
- data.tar.gz: 944590e83681412d1fe30133e3ce6407e7eda8636c4c1eb5d5baed12423d190e
3
+ metadata.gz: b468405e9a44d6c7a2a42684eca03309905080c11b2a0b49c3823675308a7176
4
+ data.tar.gz: cfdb865f37b1b2e9aee8a88685ce48b61e465fcbda924a9089c20b361e1a9fa9
5
5
  SHA512:
6
- metadata.gz: 2d12b53be830841e54f14ac6e860b0cc38a7ad830a8e83bb9ac4c35023f4b98d12b2e37efe9964b10c94bded717b4cedb8f32b51ce64d8d71020a654ec1357b4
7
- data.tar.gz: a2474cf50a27f0af680bff905cfe58d27dc3b8e068babbf0d49d1238dde7b11ae33dd8b8a9601fec1e7e26cc6e12f116cc8bfe276705655c1f339b6d92b3af86
6
+ metadata.gz: 53a1d6f0c6bbb01da0ee1288d8c74111322f5a9b15043f61b09270b215322cda34309a5ecdf88cff5cfdea307f8ed1cb92f7ed58bb3aceff1e58bc5e0052a09d
7
+ data.tar.gz: ce8128a98b0c645bcf8fd1002ec4329ac8b88efc42a112f158a3abcc33373205753b8476d262729ae9b1329d280a129f76f52d467d95c7be99ad3dd48e0b63bb
@@ -2002,7 +2002,7 @@ document.querySelectorAll(\"input, select\").forEach(function (inp) {
2002
2002
  send(:root, action)
2003
2003
  end
2004
2004
  end
2005
- ::Brick.established_drf = "/#{::Brick.config.path_prefix}#{'#index' unless route.index('#')}"
2005
+ ::Brick.established_drf = "/#{::Brick.config.path_prefix}#{action[action.index('#')..-1]}"
2006
2006
  end
2007
2007
  end
2008
2008
 
@@ -66,8 +66,8 @@ 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=\"#{bt.first.to_s + '"' unless bt[2]}>BT " +
70
- bt[1].map { |bt_pair| bt_pair.first.bt_link(bt.first) }.join(' ')
69
+ x_order = "x-order=\"#{bt.first.to_s + '"'}" unless bt[2]
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 })
73
73
  "x-order=\"#{col_name + '"' if true}>#{col_name_humanised}"
@@ -5,7 +5,7 @@ module Brick
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- TINY = 164
8
+ TINY = 165
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.164
4
+ version: 1.0.165
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorin Thwaits