lib/audited/sweeper.rb in audited-4.4.1 vs lib/audited/sweeper.rb in audited-4.5.0

- old
+ new

@@ -16,10 +16,10 @@ self.controller = nil STORED_DATA.keys.each { |k| store.delete(k) } end def current_user - controller.send(Audited.current_user_method) if controller.respond_to?(Audited.current_user_method, true) + lambda { controller.send(Audited.current_user_method) if controller.respond_to?(Audited.current_user_method, true) } end def remote_ip controller.try(:request).try(:remote_ip) end