Skip to content

Commit

Permalink
Do not require Devise or RPXNow if already defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
slainer68 committed Sep 13, 2010
1 parent d159205 commit 9e607bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/devise_rpx_connectable.rb
@@ -1,6 +1,10 @@
# encoding: utf-8
require 'devise'
require 'rpx_now'
unless defined?(Devise)
require 'devise'
end
unless defined?(RPXNow)
require 'rpx_now'
end

require 'devise_rpx_connectable/model'
require 'devise_rpx_connectable/strategy'
Expand Down

0 comments on commit 9e607bc

Please sign in to comment.