Skip to content

Commit

Permalink
Merge pull request #231 from jeffutter/check-railtie
Browse files Browse the repository at this point in the history
Only load the railtie if Rails::Railtie is defined
  • Loading branch information
oestrich committed Oct 1, 2015
2 parents 5f60c2c + c0160e0 commit 3fc9cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_api_documentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3fc9cf9

Please sign in to comment.