Skip to content

Commit c0160e0

Browse files
author
Jeff Utter
committed
Only load the railtie if Rails::Railtie is defined
1 parent 5f60c2c commit c0160e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec_api_documentation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
module RspecApiDocumentation
1010
extend ActiveSupport::Autoload
1111

12-
require 'rspec_api_documentation/railtie' if defined?(Rails)
12+
require 'rspec_api_documentation/railtie' if defined?(Rails::Railtie)
1313
include ActiveSupport::JSON
1414

1515
eager_autoload do

0 commit comments

Comments
 (0)