Sha256: f6262b1b4ab552cf9f0cf9b130aa320bdc445e2425cbcb4b500ba82c159a8a4f

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 Bytes

Contents

module Bullet
  class ActionController
    def self.enable
      ::ActionController::Dispatcher.class_eval do
        class <<self
          alias_method :origin_reload_application, :reload_application
          
          def reload_application
            origin_reload_application
            Bullet.clear
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
flyerhzm-bullet-1.5.10 lib/bullet/action_controller.rb
flyerhzm-bullet-1.5.6 lib/bullet/action_controller.rb
flyerhzm-bullet-1.5.7 lib/bullet/action_controller.rb
flyerhzm-bullet-1.5.8 lib/bullet/action_controller.rb
flyerhzm-bullet-1.5.9 lib/bullet/action_controller.rb
bullet-1.6.0 lib/bullet/action_controller.rb