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
dev
1 parent 53add21 commit e043980ef497e601257ce959dd20d5f74a75b606
@John Pinto John Pinto authored on 17 Apr 2019
Showing 7 changed files
View
app/models/guidance.rb
View
app/models/guidance_group.rb
View
app/models/org.rb
View
app/models/plan.rb
View
app/models/template.rb
View
app/models/theme.rb
View
app/models/user.rb