Sha256: 231ab9bb226f9ccd980ed736be13164647d5998e4e099736a3efe7ad1aa5608d

Contents?: true

Size: 295 Bytes

Versions: 22

Compression:

Stored size: 295 Bytes

Contents

# Rails verbosity: http://weblog.jamisbuck.org/2007/1/8/watching-activerecord-do-it-s-thing
# Marcel said they toyed with making this the console default on core
class Object
  def log
    ActiveRecord::Base.clear_active_connections!
    ActiveRecord::Base.logger = Logger.new(STDOUT)
  end
end

Version data entries

22 entries across 22 versions & 7 rubygems

Version Path
utility_belt-1.0.5 lib/rails_verbosity_control.rb
utility_belt-1.0.2 lib/rails_verbosity_control.rb