Allow users to view their own rate limits with /rate_limits.json. Note that rate limits are only updated after every API call, so this page only shows the state of the limits after the last call, not the current state.
6 lines
74 B
Ruby
6 lines
74 B
Ruby
class RateLimitPolicy < ApplicationPolicy
|
|
def index?
|
|
true
|
|
end
|
|
end
|