Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/ipinfo-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def is_bot(request)
end

class IPinfoMiddleware
def initialize(app, options = {})
def initialize(app, _args = [], **options )
@app = app
@token = options.fetch(:token, nil)
@ipinfo = IPinfo.create(@token, options)
Expand Down Expand Up @@ -47,7 +47,7 @@ def call(env)
end

class IPinfoLiteMiddleware
def initialize(app, options = {})
def initialize(app, _args = [], **options )
@app = app
@token = options.fetch(:token, nil)
@ipinfo = IPinfoLite.create(@token, options)
Expand Down Expand Up @@ -77,7 +77,7 @@ def call(env)
end

class IPinfoCoreMiddleware
def initialize(app, options = {})
def initialize(app, _args = [], **options)
@app = app
@token = options.fetch(:token, nil)
@ipinfo = IPinfoCore.create(@token, options)
Expand Down Expand Up @@ -107,7 +107,7 @@ def call(env)
end

class IPinfoPlusMiddleware
def initialize(app, options = {})
def initialize(app, _args = [], **options)
@app = app
@token = options.fetch(:token, nil)
@ipinfo = IPinfoPlus.create(@token, options)
Expand Down Expand Up @@ -137,7 +137,7 @@ def call(env)
end

class IPinfoResproxyMiddleware
def initialize(app, options = {})
def initialize(app, _args = [], **options)
@app = app
@token = options.fetch(:token, nil)
@ipinfo = IPinfo.create(@token, options)
Expand Down