Skip to content

Commit a1b15bc

Browse files
committed
restrict to fields on screen
1 parent 385c589 commit a1b15bc

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ bower.json
4040

4141
# Ignore Byebug command history file.
4242
.byebug_history
43+
44+
*.gem
45+

app/views/concerto_screencontent/screens/_content.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Begin Contents -->
22
<%
3-
@contents = @screen.subscriptions.map { |s| s.contents }.flatten.collect! {|c| c.parent || c}.uniq
3+
@contents = @screen.subscriptions.where(field_id: @screen.fields.map(&:id)).map { |s| s.contents }.flatten.collect! {|c| c.parent || c}.uniq
44
@contents = Kaminari.paginate_array(@contents).page(params[:page])
55

66
unless @contents.empty?

concerto_screencontent-0.1.1.gem

-7.5 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ConcertoScreencontent
2-
VERSION = '0.1.1'.freeze
2+
VERSION = '0.1.2'.freeze
33
end

0 commit comments

Comments
 (0)