Skip to content

Commit

Permalink
restrict to fields on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrederickson committed Feb 7, 2020
1 parent 385c589 commit a1b15bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ bower.json

# Ignore Byebug command history file.
.byebug_history

*.gem

2 changes: 1 addition & 1 deletion app/views/concerto_screencontent/screens/_content.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Begin Contents -->
<%
@contents = @screen.subscriptions.map { |s| s.contents }.flatten.collect! {|c| c.parent || c}.uniq
@contents = @screen.subscriptions.where(field_id: @screen.fields.map(&:id)).map { |s| s.contents }.flatten.collect! {|c| c.parent || c}.uniq
@contents = Kaminari.paginate_array(@contents).page(params[:page])

unless @contents.empty?
Expand Down
Binary file removed concerto_screencontent-0.1.1.gem
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/concerto_screencontent/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ConcertoScreencontent
VERSION = '0.1.1'.freeze
VERSION = '0.1.2'.freeze
end

0 comments on commit a1b15bc

Please sign in to comment.