Skip to content

Commit

Permalink
gracefully fall back to require 'activesupport' if require 'active_su…
Browse files Browse the repository at this point in the history
…pport' fails
  • Loading branch information
Jason Morrison authored and Emma Lindsay committed Oct 18, 2010
1 parent 25bbe6c commit d21754d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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'
Expand Down

0 comments on commit d21754d

Please sign in to comment.