Use Rails.logger, not ActiveRecord::Base.logger
Because everybody is not using ActiveRecord. And the logger is not specific to it.
Showing
想要评论请 注册 或 登录
Because everybody is not using ActiveRecord. And the logger is not specific to it.