lib/bullet.rb in bullet-4.2.0 vs lib/bullet.rb in bullet-4.3.0
- old
+ new
@@ -56,10 +56,10 @@
@enable == true
end
def bullet_logger=(active)
if active
- bullet_log_file = File.open('log/bullet.log', 'a+')
+ bullet_log_file = File.open("#{rails2? ? RAILS_ROOT : Rails.root.to_s}/log/bullet.log", 'a+')
bullet_log_file.sync = true
UniformNotifier.customized_logger = bullet_log_file
end
end