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 +4 -4
- data/app/helpers/super_scaffolding_helper.rb +2 -8
- data/app/views/account/scaffolding/absolutely_abstract/creative_concepts/_creative_concept.html.erb +1 -1
- data/app/views/account/scaffolding/absolutely_abstract/creative_concepts/show.html.erb +3 -3
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcaa445f148661d017dd62f0f83c9ed946f11f05befd69ecb42d746611daf495
|
4
|
+
data.tar.gz: 9a39ac9d4288270d767519abe3ea333246eb0dbd09127cdaa4c95fba8661c3bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 993d3de8823608294e14f80e597d274cc79cf6931f664aa1599b70c3d7444df526e386967bcf07ade0ff16900bdd7f0c9c31507eb3cac82752e669233515b9b4
|
7
|
+
data.tar.gz: 243124f68663ffcfa286b5e96cbd9a591fcfd8331f816977f2a3357e6d3e72a846d6338251428ccad23c3003b3016499104044bd1d0b9f2c4cfcde30c656793d
|
@@ -1,13 +1,7 @@
|
|
1
1
|
module SuperScaffoldingHelper
|
2
2
|
unless defined?(BulletTrain::ActionModels)
|
3
|
-
|
4
|
-
|
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
|
data/app/views/account/scaffolding/absolutely_abstract/creative_concepts/_creative_concept.html.erb
CHANGED
@@ -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>
|
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
|
+
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-
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|