Skip to content

Commit 26f41e8

Browse files
authored
Merge pull request #14 from rubygarage/bugfix/rails-5-deprecations
Fix Rails 5 deprecation warnings
2 parents adba625 + 2aa33ab commit 26f41e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Start off by generating an initializer:
2424

2525
this will create file `config/initializers/detectify.rb` in your application directory.
2626

27-
You can configure Detectify for your application needs via initializer. After this you can access detected entity via: `env['Detectify-Entity']`.
27+
You can configure Detectify for your application needs via initializer. After this you can access detected entity via: `request.env['Detectify-Entity']`.
2828

2929
## Contributing
3030

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)