Shopify / statsd-instrument

A StatsD client for Ruby apps. Provides metaprogramming methods to inject StatsD instrumentation into your code.
http://shopify.github.io/statsd-instrument
MIT License
570 stars 94 forks source link

Check for Rails::Railtie rather than Rails #204

Closed casperisfine closed 4 years ago

casperisfine commented 4 years ago

In some corner cases the Rails class can be defined by some rails-something gems, even though you are not in a full Rails context.

Because of this we updated the documentation to recommend checking for Rails::Railtie definition: https://github.com/rails/rails/commit/d50049bef8c1dd23634076c1e345ed7a1c50b75d