Method: ArSync.without_notification

Defined in:
lib/ar_sync/core.rb

.without_notificationObject



30
31
32
33
34
35
36
37
# File 'lib/ar_sync/core.rb', line 30

def self.without_notification
  key = :ar_sync_skip_notification
  flag_was = Thread.current[key]
  Thread.current[key] = true
  yield
ensure
  Thread.current[key] = flag_was
end