From 350df8a410ded9af05e2481f163ff53724074c67 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Thu, 13 Feb 2014 22:46:13 -0500 Subject: [PATCH] Update main_controller.rb changes comments to be same as others --- app/controllers/main_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index 5cedd78c..61b49ba3 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -159,7 +159,7 @@ class MainController < ApplicationController #remove "mapper:" if appended at beginning term = term[7..-1] if term.downcase[0..6] == "mapper:" - #!connor same question as above + # !connor same question as above @mappers = User.where('LOWER("name") like ?', term.downcase + '%').limit(5).order('"name"') else @mappers = [] @@ -178,7 +178,7 @@ class MainController < ApplicationController if term && !term.empty? @synapses = Synapse.select('DISTINCT "desc"'). - #!connor this should likely also have the preceeding % + # !connor this should likely also have the preceeding % where('LOWER("desc") like ?', term.downcase + '%').limit(5).order('"desc"') render json: autocomplete_synapse_generic_json(@synapses)