bullet_train-super_scaffolding 1.2.4 → 1.2.6

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: d734f16d6cd05eb0d38241b4edeab4d5a1a9d9494d1b5c8b6d96f624958302b9
4
- data.tar.gz: 3cd48d6de6e62df015133acd824ae408ff600d5d41b15d3fad425718b1c1cf51
3
+ metadata.gz: dcaa445f148661d017dd62f0f83c9ed946f11f05befd69ecb42d746611daf495
4
+ data.tar.gz: 9a39ac9d4288270d767519abe3ea333246eb0dbd09127cdaa4c95fba8661c3bc
5
5
  SHA512:
6
- metadata.gz: 814f91448ba154391879e486173a9371253908543e4e93ead1c2280f1a349484d13f76365378374cf636d553e2be080cc394c400f37f9d5fc7bec4b99c4e83bd
7
- data.tar.gz: 2246684886387e4b5e239e09c35c73fa72a437e503ba2623187e8195205a513795a3b6a3f33801922bd7bfb7ee58e41b01c6cf8c93901f0b6df5f564e40fe59b
6
+ metadata.gz: 993d3de8823608294e14f80e597d274cc79cf6931f664aa1599b70c3d7444df526e386967bcf07ade0ff16900bdd7f0c9c31507eb3cac82752e669233515b9b4
7
+ data.tar.gz: 243124f68663ffcfa286b5e96cbd9a591fcfd8331f816977f2a3357e6d3e72a846d6338251428ccad23c3003b3016499104044bd1d0b9f2c4cfcde30c656793d
@@ -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.4"
3
+ VERSION = "1.2.6"
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.4
4
+ version: 1.2.6
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