Skip to content

Can't use params to define identifier of throttle #14

Description

@phuongnd08

thing like this no longer works with latest grape:
throttle max: 5, per: 1.day, identifier: Proc.new { params[:id] }
because params[:id] always return nil in a before filter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions