Skip to content

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

@phuongnd08

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions