|
Added code to make Search functionality case-insensitive.
Changes:
- relevant models with :search scope updated with lower casing of the column
values and the search parameters.
- fixed all rubocop warnings on the changed models except
"Style/RedundantReturn: Redundant return detected."
Note: one could not use 'ILIKE' in WHERE clauses changed as it is not supported by MariaDB and MySql.
Hence we use lower() in changed WHERE clauses.
Fix for issue #2080
|
|---|
|
|
| app/models/guidance.rb |
|---|
| app/models/guidance_group.rb |
|---|
| app/models/org.rb |
|---|
| app/models/plan.rb |
|---|
| app/models/template.rb |
|---|
| app/models/theme.rb |
|---|
| app/models/user.rb |
|---|