Module: RateLimit::Config::FileLoader

Defined in:
lib/rate_limit/config/file_loader.rb

Class Method Summary collapse

Class Method Details

.fetchObject



8
9
10
11
12
# File 'lib/rate_limit/config/file_loader.rb', line 8

def self.fetch
  return {} unless File.exist?(RateLimit.config.limits_file_path)

  YAML.load_file(RateLimit.config.limits_file_path)
end