module RailsSQLPrettifier::AbstractAdapterLogPrettifier
Private Instance Methods
log( sql, *args, **kwargs, &block )
click to toggle source
Calls superclass method
# File lib/rails_sql_prettifier.rb, line 32 def log( sql, *args, **kwargs, &block ) # \n need to be placed because AR log will start with action description + time info. # rescue sql - just to be sure Prettifier wouldn't break production formatted_sql = "\n" + Niceql::Prettifier.prettify_sql(sql) rescue sql super( formatted_sql, *args, **kwargs, &block ) end