ActionController::RateLimiting
Constants
LIMITS = [] of Nil
Compile-time counter for unique generated filter method names.
Class methods
default_store
Sourcedefault_store=(store : ActiveSupport::Cache::Store) : ActiveSupport::Cache::Store
Apps can point this at a shared store (PG/Redis) — Rails does the same via config.action_controller.cache_store.
Macros
rate_limit(to, within, only = nil, except = nil, by = nil, store = nil, name = nil, scope = nil, **opts)
with: is a Crystal keyword (like as: in routes), so it is read
from **opts — the call site still reads with: :handler.
Unknown **opts keys are a compile error (see protect_from_forgery);
the named params above already reject unknown names on their own.