brick 1.0.219 → 1.0.220

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: 78f81d0e3624f8e2b3e387067bf9239134339bdbff20c3386e21c9751e0658a3
4
- data.tar.gz: 301504fb244c153b408addb0651778f1e80d970a19ca1b429e5954fb7deadffe
3
+ metadata.gz: 8bc21a2ffe1c7434812f1167f26303a4eeda701766489b5616348a3b4a890a93
4
+ data.tar.gz: 1c8e6226c3653732f2ac3e481a8348d30aa78ec7520fa2923d2a11f33719e686
5
5
  SHA512:
6
- metadata.gz: '09d2f69ed9f7d8c7f786ab7910d425ef81a09219b1e9388ed7bf1b9369e389653388498f03142dd4f315e32dcc08680e1dbed133bfab648abd78d837019abce2'
7
- data.tar.gz: f3f729e660db050dfa0bf970e62ec2b3be1b77a77759c46f6a11fda10d5623b862a926368237e06d60bf1433b3102a81ff17ef89189fffbed4a8bf637a6f451a
6
+ metadata.gz: 391e5b7b6cf05618bf7cc74c55d0df46a5eb0d843cdc4ebfea501e5a7e5904181b4ad8f2440b7c8635da4dfe6225401ad1379cd8a52cfe2b26d9d9f38517afe6
7
+ data.tar.gz: 3c4335b074b040def278f5ba48b154cb122e575805c2cd7abda0157a610137f7899db7aed1c11f71923e5af6e84955f261c56d8dfbc0c4ab29c5600d4fb25152
@@ -582,7 +582,7 @@ window.addEventListener(\"popstate\", linkSchemas);
582
582
  alias :_brick_lookup_context :lookup_context
583
583
  def lookup_context(*args)
584
584
  ret = _brick_lookup_context(*args)
585
- @_lookup_context.instance_variable_set(:@_brick_req_params, params) if self.class < AbstractController::Base && request && params.present?
585
+ @_lookup_context.instance_variable_set(:@_brick_req_params, params) if self.class < AbstractController::Base && respond_to?(:request) && request && params.present?
586
586
  ret
587
587
  end
588
588
  end
@@ -1167,7 +1167,7 @@ end
1167
1167
  %></td>
1168
1168
  <td<%= ' class=\"dimmed\"'.html_safe unless r[6] %>><%= # Views
1169
1169
  %></td>
1170
- <tr>
1170
+ </tr>
1171
1171
  <% end %>
1172
1172
  </tbody></table>
1173
1173
  #{script}"
@@ -1237,7 +1237,7 @@ end
1237
1237
  end %>#{"
1238
1238
  #{schema_options}" if schema_options}
1239
1239
  <select id=\"tbl\">#{table_options}</select>
1240
- <table id=\"resourceName\"><td><h1><%= page_title %></h1></td>
1240
+ <table id=\"resourceName\"><tr><td><h1><%= page_title %></h1></td>
1241
1241
  <% rel = Brick.relations[#{model_name}.table_name]
1242
1242
  if (in_app = rel.fetch(:existing, nil)&.fetch(:show, nil))
1243
1243
  begin
@@ -1270,7 +1270,7 @@ end %>#{"
1270
1270
  ) %></td>
1271
1271
  <% end
1272
1272
  end %>
1273
- </table>
1273
+ </tr></table>
1274
1274
  <%
1275
1275
  if (description = rel&.fetch(:description, nil)) %>
1276
1276
  <span class=\"__brick\"><%= description %></span><br><%
@@ -5,7 +5,7 @@ module Brick
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- TINY = 219
8
+ TINY = 220
9
9
 
10
10
  # PRE is nil unless it's a pre-release (beta, RC, etc.)
11
11
  PRE = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.219
4
+ version: 1.0.220
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorin Thwaits
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-07 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord