Initial commit
This commit is contained in:
17
app/api/v2/auth/utils.rb
Normal file
17
app/api/v2/auth/utils.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
module V2
|
||||
module Auth
|
||||
module Utils
|
||||
class << self
|
||||
def cache
|
||||
# Simply use rack-attack cache wrapper
|
||||
@cache ||= Rack::Attack::Cache.new
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user