Method: Honeybadger::Config#detected_framework
- Defined in:
- lib/honeybadger/config.rb
permalink #detected_framework ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/honeybadger/config.rb', line 336 def detected_framework if self[:framework] =~ NOT_BLANK self[:framework].to_sym elsif defined?(::Rails::VERSION) && ::Rails::VERSION::STRING > '3.0' :rails elsif defined?(::Sinatra::VERSION) :sinatra elsif defined?(::Hanami::VERSION) && ::Hanami::VERSION >= '2.0' :hanami elsif defined?(::Rack.release) :rack else :ruby end end |