bullet_train-super_scaffolding 1.2.4 → 1.2.5
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: 2eab127e21dd9c07bcc3bc1822cdce859de7ccf9aa1b402b569e3c6b5215aefb
|
4
|
+
data.tar.gz: 7ac0f25c54cfdfbd40d5d1ed69128f69505117a10a88633130e3f4e17eaada52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 514b89f8b2e6d3edf58fc8e6a99bd2275f3e7c097c9743aa0d639c2c529400fe4479095739f643385f1c6d97c98a6886306616d3ddba079c67e47dc90100cb53
|
7
|
+
data.tar.gz: 4939c401a8ccf97ba14d1906e6275083ae51752ebac2c569106b158ae1937a5e5fc3892372f552ab8e05fadd8905da97746143b00f91d8624094be64a1097563
|
@@ -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.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-
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|