lib/bullet.rb in flyerhzm-bullet-1.5.1 vs lib/bullet.rb in flyerhzm-bullet-1.5.2
- old
+ new
@@ -1,8 +1,14 @@
require 'bulletware'
module Bullet
+ autoload :ActiveRecord, 'bullet/active_record'
+ autoload :Association, 'bullet/association'
+ autoload :Counter, 'bullet/counter'
+ autoload :BulletLogger, 'bullet/logger'
+ autoload :Notification, 'bullet/notification'
+
class <<self
attr_accessor :enable, :alert, :console, :growl, :growl_password, :rails_logger, :bullet_logger, :logger, :logger_file
def enable=(enable)
@enable = enable
@@ -60,12 +66,6 @@
def log_notification(path)
BULLETS.each {|bullet| bullet.log_notification(path) if bullet.notification?}
end
end
-
- autoload :ActiveRecord, 'bullet/active_record'
- autoload :Association, 'bullet/association'
- autoload :Counter, 'bullet/counter'
- autoload :BulletLogger, 'bullet/logger'
- autoload :Notification, 'bullet/notification'
end