Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Lower() fix #2

  • Loading branch information...
commit ae6330b1f7505db936f6d6975f3a9b58b0a600d1 1 parent 30df84d
@mark-d-holmberg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/user.rb
View
2  app/models/user.rb
@@ -42,7 +42,7 @@ class User < ActiveRecord::Base
scope :advisors, lambda { with_role("advisor") }
scope :professors, lambda { with_role("professor") }
scope :gods, lambda { with_role("god") }
- scope :with_name, lambda { |term| where("users.name LIKE LOWER(?)", "%#{term}%") }
+ scope :with_name, lambda { |term| where("LOWER(users.name) LIKE LOWER(?)", "%#{term}%") }
#default_scope order('users.name ASC')
Please sign in to comment.
Something went wrong with that request. Please try again.