Sha256: c25c27f87b024f6851d0596450b31f128a929c3b733c0b24f1903b9984724e66

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

require 'action_controller'
require 'better_rate_limit/configuration'

module BetterRateLimit
  class << self
    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield configuration
    end

    def reset_configuration
      @configuration = Configuration.new
    end
  end
end

module ActionController
  autoload :BetterRateLimit, 'action_controller/better_rate_limit'
end

ActiveSupport.on_load(:action_controller) do
  include ActionController::BetterRateLimit
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
better_rate_limit-0.1.10 lib/better_rate_limit.rb
better_rate_limit-0.1.9 lib/better_rate_limit.rb
better_rate_limit-0.1.8 lib/better_rate_limit.rb
better_rate_limit-0.1.7 lib/better_rate_limit.rb
better_rate_limit-0.1.6 lib/better_rate_limit.rb