- def find_issue
- @issue = Issue.find(params[:id])
- end
-
- def create_new_issue_params
- params.permit(:reportable_id, :reportable_type, :user_id)
- end
-
- def issue_params
- params[:issue].permit(:reportable_id, :reportable_type,:user_id)
- end
-
- def report_params
- params[:report].permit(:details)
- end