Sha256: 22eb0aa0121950e54ee3f0b94f1f72bdc39d89240f7ac596c2580e76e8a6b334
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
require 'singleton' require 'rate_limiter/config' require 'rate_limiter/model' module RateLimiter def self.timestamp_field= field_name RateLimiter.config.timestamp_field = field_name end def self.timestamp_field RateLimiter.config.timestamp_field end private def self.config @@config ||= RateLimiter::Config.instance end end ActiveSupport.on_load(:active_record) do include RateLimiter::Model end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rate_limiter-0.0.2 | lib/rate_limiter.rb |
rate_limiter-0.0.1 | lib/rate_limiter.rb |