Skip to content

Commit 13b463e

Browse files
committed
Fix 'Passing strings or symbols to the middleware builder' Rails 5 deprecation warning
1 parent adba625 commit 13b463e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/detectify/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Detectify
22
class Railtie < Rails::Railtie
33
initializer 'detectify' do |app|
4-
app.config.middleware.use 'Detectify::Middleware'
4+
app.config.middleware.use Detectify::Middleware
55
end
66
end
77
end

0 commit comments

Comments
 (0)