Skip to content
Snippets Groups Projects
Commit b4684856 authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

fix bug, reject subjects that dont have highlights

parent 4cd171aa
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ class WelcomeController < ApplicationController ...@@ -12,7 +12,7 @@ class WelcomeController < ApplicationController
end end
@subjects = subject_repository.all_from_offset_to_limit 0, 10 @subjects = subject_repository.all_from_offset_to_limit 0, 10
@subjects.reject{|s| not s.highlights.present?} @subjects.reject!{|s| s.highlights.blank?}
@subjects = @subjects.take(6) @subjects = @subjects.take(6)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment