ActiveRecordã§ãããSQLãçºè¡ãããæã«ããã®SQLãå®è¡ãããDBã®ã³ãã¯ã·ã§ã³æ å ±ã調ã¹ããã¨ããããã Hoge.find() ããã¨ãã«ã©ãããSQLãçºè¡ããã¦ããã®ãã¨ããã®ã¯developmentç°å¢ãªãããã©ã«ãã§development.logã«ã¯ã¨ãªãã°ãåºãã ãã®ãã°å¦ç㯠active_record/connection_adapters/abstract_adapter.rb ã«æ¸ããã¦ãã # active_record/connection_adapters/abstract_adapter.rb 198 def log(sql, name) 199 name ||= "SQL" 200 @instrumenter.instrument("sql.active_record", 201 :sql => sql, :name => name, :c
{{#tags}}- {{label}}
{{/tags}}