Skip to content

Commit 3fc9cf9

Browse files
committed
Merge pull request #231 from jeffutter/check-railtie
Only load the railtie if Rails::Railtie is defined
2 parents 5f60c2c + c0160e0 commit 3fc9cf9

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)