Skip to content

Commit

Permalink
Merge pull request #216 from PavelPenkov/better_rails_check
Browse files Browse the repository at this point in the history
Better check for Rails application
  • Loading branch information
rafaelfranca committed Jun 17, 2016
1 parent 50cafd7 commit 94774e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/active_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ module ActiveResource
autoload :Collection
end

require 'active_resource/railtie' if defined? Rails

require 'active_resource/railtie' if defined?(Rails.application)

0 comments on commit 94774e4

Please sign in to comment.