Sha256: 7e61e1ff1cfdc61884aee597f994f2c3fd0beb06d3243d99e49074a794513143

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require 'bulletware'

module Bullet
  @@enable = nil

  class <<self
    def enable=(enable)
      @@enable = enable
      if enable? 
        Bullet::ActiveRecord.enable
        ActionController::Dispatcher.middleware.use Bulletware
      end
    end

    def enable?
      @@enable == true
    end
  end

  autoload :ActiveRecord, 'bullet/active_record'
  autoload :Association, 'bullet/association'
  autoload :BulletLogger, 'bullet/logger'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flyerhzm-bullet-1.4.1 lib/bullet.rb