module Bullet
def bullet_logger=(active)
def bullet_logger=(active) if active require 'fileutils' root_path = "#{rails? ? Rails.root.to_s : Dir.pwd}" FileUtils.mkdir_p(root_path + '/log') bullet_log_file = File.open("#{root_path}/log/bullet.log", 'a+') bullet_log_file.sync = true UniformNotifier.customized_logger = bullet_log_file end end