Display only published processes in homepage

This commit is contained in:
rgarcia
2018-05-30 13:32:20 +02:00
parent 1f16f9df6b
commit 8986cf4727
3 changed files with 11 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ class Widget::Feed < ActiveRecord::Base
end
def processes
Legislation::Process.open.limit(limit)
Legislation::Process.open.published.limit(limit)
end
end