bullet_train-super_scaffolding 1.2.3 → 1.2.5

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: 3731aa252a1057e92afbd986a89b48acb7d746b073d587765800ef774f85e97d
4
- data.tar.gz: 3b2cec242b9ac5cc85c189a9b564e4fb031a6f8b5dbd4d891078049504a483ae
3
+ metadata.gz: 2eab127e21dd9c07bcc3bc1822cdce859de7ccf9aa1b402b569e3c6b5215aefb
4
+ data.tar.gz: 7ac0f25c54cfdfbd40d5d1ed69128f69505117a10a88633130e3f4e17eaada52
5
5
  SHA512:
6
- metadata.gz: d0e984b6d6a7498168620dd10edff2d14d39f2e527793f4e306e19812efdaf0388b83bce950a94fe1bf1369b4cd216a2d116383b60c24a9798110f6d49e0a07d
7
- data.tar.gz: 8320b29cd30700cef5fbe0dcedec57b0062bf6dafc272331aaee522739d736f1beae6dcefc346f5b6570b9182dbea654e42af9c7afee8d42ef254b007672d18b
6
+ metadata.gz: 514b89f8b2e6d3edf58fc8e6a99bd2275f3e7c097c9743aa0d639c2c529400fe4479095739f643385f1c6d97c98a6886306616d3ddba079c67e47dc90100cb53
7
+ data.tar.gz: 4939c401a8ccf97ba14d1906e6275083ae51752ebac2c569106b158ae1937a5e5fc3892372f552ab8e05fadd8905da97746143b00f91d8624094be64a1097563
@@ -1,13 +1,7 @@
1
1
  module SuperScaffoldingHelper
2
2
  unless defined?(BulletTrain::ActionModels)
3
- # action_model_select_controller is originally a method
4
- # in the Action Models package, but we can't simply
5
- # remove this method from Super Scaffolded index partials
6
- # when the package isn't present. Since we keep
7
- # action_model_select_controller in our views, we need
8
- # this method so we don't get a NoMethodError.
9
- def action_model_select_controller
10
- yield
3
+ def action_model_select_controller(&block)
4
+ capture(&block)
11
5
  end
12
6
  end
13
7
  end
@@ -5,7 +5,7 @@
5
5
  <% with_attribute_settings object: creative_concept do %>
6
6
  <tr data-id="<%= creative_concept.id %>">
7
7
  <td><%= render 'shared/attributes/text', attribute: :name, url: [:account, creative_concept] %></td>
8
- <td><%= render 'account/shared/memberships/photos', memberships: creative_concept.all_collaborators, size: 9, align: :center %></td>
8
+ <td><%= render 'account/shared/memberships/photos', memberships: creative_concept.all_collaborators.excluding_platform_agents, size: 9, align: :center %></td>
9
9
  <%# 🚅 super scaffolding will insert new fields above this line. %>
10
10
  <td><%= display_date_and_time(creative_concept.created_at) %></td>
11
11
  <td class="buttons">
@@ -16,7 +16,7 @@
16
16
  <%= render 'shared/attributes/base' do |p| %>
17
17
  <% p.content_for :heading, t(".fields.admins.heading") %>
18
18
  <% p.content_for :body do %>
19
- <%= render 'account/shared/memberships/photos', memberships: (@team.admins + @creative_concept.admins).uniq %>
19
+ <%= render 'account/shared/memberships/photos', memberships: (@team.admins.reject(&:platform_agent?) + @creative_concept.admins.reject(&:platform_agent?)).uniq %>
20
20
  <% end %>
21
21
  <% end %>
22
22
  </div>
@@ -26,7 +26,7 @@
26
26
  <%= render 'shared/attributes/base' do |p| %>
27
27
  <% p.content_for :heading, t(".fields.editors.heading") %>
28
28
  <% p.content_for :body do %>
29
- <%= render 'account/shared/memberships/photos', memberships: @creative_concept.editors %>
29
+ <%= render 'account/shared/memberships/photos', memberships: @creative_concept.editors.reject(&:platform_agent?) %>
30
30
  <% end %>
31
31
  <% end %>
32
32
  </div>
@@ -37,7 +37,7 @@
37
37
  <%= render 'shared/attributes/base' do |p| %>
38
38
  <% p.content_for :heading, t(".fields.viewers.heading") %>
39
39
  <% p.content_for :body do %>
40
- <%= render 'account/shared/memberships/photos', memberships: @creative_concept.viewers %>
40
+ <%= render 'account/shared/memberships/photos', memberships: @creative_concept.viewers.reject(&:platform_agent?) %>
41
41
  <% end %>
42
42
  <% end %>
43
43
  </div>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.2.3"
3
+ VERSION = "1.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-super_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-17 00:00:00.000000000 Z
11
+ date: 2022-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard