Skip to content

Commit

Permalink
Only load the railtie if Rails::Railtie is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Utter committed Oct 1, 2015
1 parent 5f60c2c commit c0160e0
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 c0160e0

Please sign in to comment.