diff --git a/lib/active_resource.rb b/lib/active_resource.rb index ef3490e009..5432dfcc1b 100644 --- a/lib/active_resource.rb +++ b/lib/active_resource.rb @@ -42,5 +42,4 @@ module ActiveResource autoload :Collection end -require 'active_resource/railtie' if defined? Rails - +require 'active_resource/railtie' if defined?(Rails.application)