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.
25 lines
568 B
25 lines
568 B
# frozen_string_literal: true |
|
|
|
class DecisionsController < ApplicationController |
|
include JurisprudenceSearch |
|
|
|
load_and_authorize_resource :jurisprudence, class: "Cdao::Jurisprudence" |
|
|
|
def index |
|
search = jurisprudence_search(search_params) |
|
|
|
@jurisprudences = search.results |
|
@years = (1901..Time.zone.today.year).entries.reverse |
|
|
|
respond_to do |format| |
|
format.html |
|
end |
|
end |
|
|
|
private |
|
|
|
def search_params |
|
params.permit(:reference_number, :title, :short_title, :q, :page, :per_page, |
|
:subject_ids) |
|
end |
|
end
|
|
|