module ActionLimiter

ActionLimiter implementes rate limiting backed by Redis

@author Maddie Schipper @since 0.1.0

@private

@private

Constants

SCRIPTS

@private

VERSION

The current version number

Public Class Methods

instrument(name, payload = {}) { |payload| ... } click to toggle source
# File lib/action_limiter/instrumentation.rb, line 12
def self.instrument(name, payload = {})
  if defined?(ActiveSupport::Notifications)
    ActiveSupport::Notifications.instrument(name, payload) { yield(payload) }
  else
    yield(payload)
  end
end