#351: small refactoring
This commit is contained in:
parent
7809f755b3
commit
a26a44781d
|
@ -5,9 +5,8 @@ class AdvisoriesController < ApplicationController
|
||||||
authorize_resource
|
authorize_resource
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@advisories = @advisories.scoped(include: :platforms)
|
@advisories = @advisories.includes(:platforms).search(params[:q]).
|
||||||
@advisories = @advisories.search(params[:q]) if params[:q]
|
uniq.paginate(page: params[:page])
|
||||||
@advisories = @advisories.uniq.paginate(page: params[:page])
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.atom
|
format.atom
|
||||||
|
|
Loading…
Reference in New Issue