Skip to content
Snippets Groups Projects
Commit 92848838 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

fix sql call

parent f89b0489
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ class Management::ComplaintsController < ManagementController ...@@ -2,7 +2,7 @@ class Management::ComplaintsController < ManagementController
include RepositoriesProxy include RepositoriesProxy
before_action :set_complaint, only: :destroy before_action :set_complaint, only: :destroy
def index def index
@complaints = Complaint.all @complaints = Complaint.includes(:complaint_reason, :complaintable, :user)
@date = params[:period] @date = params[:period]
@date_limit = case @date.to_i @date_limit = case @date.to_i
......
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