Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我关注了所有关于为活动记录禁用 SQL 查询日志记录的主题。谁知道如何在 rails 3.2.x 中正确禁用它?
试一试 - 将活动记录日志发送到 null:
if Rails.env.development? ActiveRecord::Base.logger = Logger.new('/dev/null') end