You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
408 B
17 lines
408 B
class ReportsController < ApplicationController |
|
include DoctrineSearch |
|
|
|
def index |
|
authorize! :display, Doctrine |
|
|
|
search = doctrine_search(search_params) |
|
@results = search.results |
|
@users = User.all |
|
end |
|
|
|
private |
|
|
|
def search_params |
|
params.permit(:created_at, :created_at_start, :created_at_end, :q, :page, :per_page, exclude_ids: [], subject_ids: [], user_ids: []) |
|
end |
|
end
|
|
|