Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: uninitialized constant Rack::Throttle::Second #27

Closed
andreydeineko opened this issue Sep 13, 2016 · 1 comment
Closed

NameError: uninitialized constant Rack::Throttle::Second #27

andreydeineko opened this issue Sep 13, 2016 · 1 comment

Comments

@andreydeineko
Copy link

Hi.
Basically as title states,

    config.middleware.use Rack::Throttle::Daily,    max: 1000  # requests
    config.middleware.use Rack::Throttle::Hourly,   max: 100   # requests
    config.middleware.use Rack::Throttle::Minute,   max: 40    # requests
    config.middleware.use Rack::Throttle::Interval, min: 3.0   # seconds
    # NameError: uninitialized constant Rack::Throttle::Second
    # config.middleware.use Rack::Throttle::Second,   max: 1     # requests

config.middleware.use Rack::Throttle::Second is throwing

NameError: uninitialized constant Rack::Throttle::Second

Rails 4.2.7
Ruby 2.3.0

@brandonhilkert
Copy link
Collaborator

Dup. #26

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

No branches or pull requests

2 participants