mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
FIX: Ruby 2.2 has include
as private
This commit is contained in:
parent
2713b77e28
commit
dd3953bf19
|
@ -23,16 +23,11 @@ class RateLimiter
|
|||
|
||||
def self.included(base)
|
||||
base.extend(ClassMethods)
|
||||
base.include(InstanceMethods)
|
||||
end
|
||||
|
||||
module InstanceMethods
|
||||
|
||||
# For the lifetime of this instance, don't enforce rate limits.
|
||||
def disable_rate_limits!
|
||||
@rate_limits_disabled = true
|
||||
end
|
||||
|
||||
# For the lifetime of this instance, don't enforce rate limits.
|
||||
def disable_rate_limits!
|
||||
@rate_limits_disabled = true
|
||||
end
|
||||
|
||||
module ClassMethods
|
||||
|
|
Loading…
Reference in New Issue
Block a user