Whenever you need to study sql accesses of your code, you can do it during a console session. Just need to configure the logger:
rails c
logger = Logger.new(STDOUT);ActiveRecord::Base.logger = logger;ActiveResource::Base.logger = logger;
It will log every sql query to the console.
No comments:
Post a Comment