Skip to content

Commit

Permalink
Prefer sibling Active Support
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed May 6, 2009
1 parent 2f42433 commit a05cfb6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions activeresource/lib/active_resource.rb
Expand Up @@ -21,15 +21,9 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++ #++


begin activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
require 'active_support' $:.unshift(activesupport_path) if File.directory?(activesupport_path)
rescue LoadError require 'active_support'
activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
if File.directory?(activesupport_path)
$:.unshift activesupport_path
require 'active_support'
end
end
require 'active_support/core/all' require 'active_support/core/all'


require 'active_resource/formats' require 'active_resource/formats'
Expand Down

0 comments on commit a05cfb6

Please sign in to comment.