Class: ApplicationController

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ApplicationSignInCallbacksConcern

#sign_in

Methods included from ApplicationPaginationConcern

#page_param

Methods included from ApplicationAnnouncementsConcern

#global_announcements, #unread_global_announcements

Methods included from ApplicationInstanceUserConcern

#current_instance_user

Methods included from ApplicationUserTimeZoneConcern

#set_time_zone

Methods included from ApplicationUserConcern

#handle_access_denied, #publicly_accessible?

Methods included from ApplicationComponentsConcern

#handle_component_not_found

Instance Method Details

#without_bulletObject (protected)

Note:

Bullet will not be enabled again after this block returns until the next Rack request. The block syntax is in anticipation of Bullet eventually supporting temporary disabling, which currently does not work. See flyerhzm/bullet#247.

Runs the provided block with Bullet disabled.


34
35
36
37
38
39
40
# File 'app/controllers/application_controller.rb', line 34

def without_bullet
  old_bullet_enable = Bullet.enable?
  Bullet.enable = false
  yield
ensure
  Bullet.enable = old_bullet_enable
end