quote column name for mysql

This commit is contained in:
Serge Paquet 2013-12-27 18:05:38 -05:00
parent 8fbf76b484
commit 00228bc120

View file

@ -13,7 +13,7 @@ class UsersController < ApplicationController
(parents[u.invited_by_user_id.to_i] ||= []).push u
end
Keystore.where("key like 'user:%:karma'").each do |k|
Keystore.where("`key` like 'user:%:karma'").each do |k|
karmas[k.key[/\d+/].to_i] = k.value
end