improved search methods
This commit is contained in:
@@ -21,7 +21,7 @@ class ForumPost < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def creator_name(name)
|
||||
where("forum_posts.creator_id = (select _.id from users _ where lower(_.name) = ?)", name)
|
||||
where("forum_posts.creator_id = (select _.id from users _ where lower(_.name) = ?)", name.downcase)
|
||||
end
|
||||
|
||||
def active
|
||||
|
||||
Reference in New Issue
Block a user