diff --git a/lib/rspec_api_documentation.rb b/lib/rspec_api_documentation.rb index 7066409b..3e07da93 100644 --- a/lib/rspec_api_documentation.rb +++ b/lib/rspec_api_documentation.rb @@ -9,7 +9,7 @@ module RspecApiDocumentation extend ActiveSupport::Autoload - require 'rspec_api_documentation/railtie' if defined?(Rails) + require 'rspec_api_documentation/railtie' if defined?(Rails::Railtie) include ActiveSupport::JSON eager_autoload do