Refactor deprecated in rails 6.1 issues

This commit is contained in:
Alex Sherman 2021-05-03 13:40:42 +05:00
parent 83f3e14330
commit 39bbe6e06d
10 changed files with 122 additions and 50 deletions

View file

@ -28,7 +28,7 @@
.col-md-3
.form-group
= label_tag t(:country)
= select_tag '[q][country_code_eq]', SortedCountry.all_options(params[:q][:country_code_eq]), { include_blank: true, placeholder: t(:choose), class: 'form-control selectize' }
= select_tag '[q][country_code_eq]', ApplicationController.helpers.all_country_options(params[:q][:country_code_eq]), { include_blank: true, placeholder: t(:choose), class: 'form-control selectize' }
.col-md-6
.form-group
= label_tag t(:contact_type)