We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c59c8a commit cf83f00Copy full SHA for cf83f00
lib/appmap.rb
@@ -57,7 +57,7 @@
57
end
58
end.enable
59
60
- if defined?(::Rails)
+ if defined?(::Rails::Railtie)
61
require 'appmap/railtie'
62
63
lib/appmap/detect_enabled.rb
@@ -104,7 +104,7 @@ def recording_method_enabled?
104
105
106
def rails_env
107
- return Rails.env if defined?(Rails)
+ return Rails.env if defined?(::Rails::Railtie)
108
109
return ENV['RAILS_ENV']
110
0 commit comments