require 'set' module Bullet class NotificationError < StandardError; end if Rails.version =~ /^3.0/ autoload :ActiveRecord, 'bullet/active_record3' else autoload :ActiveRecord, 'bullet/active_record2' autoload :ActionController, 'bullet/action_controller2' end autoload :Rack, 'bullet/rack' autoload :BulletLogger, 'bullet/logger' autoload :Notification, 'bullet/notification' autoload :Presenter, 'bullet/presenter' autoload :Detector, 'bullet/detector' autoload :Registry, 'bullet/registry' autoload :NotificationCollector, 'bullet/notification_collector' if defined? Rails::Railtie # compatible with rails 3.0.0.beta4 class BulletRailtie < Rails::Railtie initializer "bullet.configure_rails_initialization" do |app| app.middleware.use Bullet::Rack end end end class <