Permalink
Browse files

gracefully fall back to require 'activesupport' if require 'active_su…

…pport' fails
  • Loading branch information...
1 parent 25bbe6c commit d21754d4605b39cccbc2e4f567ca321639cf97ed @jasonm jasonm committed with Emma Lindsay Oct 18, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/hoptoad_notifier.rb
@@ -1,7 +1,11 @@
require 'net/http'
require 'net/https'
require 'rubygems'
-require 'activesupport'
+begin
+ require 'active_support'
+rescue LoadError
+ require 'activesupport'
+end
require 'hoptoad_notifier/version'
require 'hoptoad_notifier/configuration'
require 'hoptoad_notifier/notice'

0 comments on commit d21754d

Please sign in to comment.