Sha256: d1a67bf64afb6d8ba3b39edb6560b4aff05afe144d6c059c2eea975961bd5bc0
Contents?: true
Size: 474 Bytes
Versions: 21
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true module DefraRubyMocks class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :delay_response private def delay_response # sleep() expects the time to be specified in seconds, but we allow delay # to be specified in milliseconds. Dividing by 1000 converts milliseconds # to seconds. sleep(DefraRubyMocks.configuration.delay / 1000) end end end
Version data entries
21 entries across 21 versions & 1 rubygems