Browse files

Merge pull request #1695 from geemus/bundler

---
  • Loading branch information...
2 parents 8880307 + 047444c commit 6d4962dbad7c620045a02393a5878b29ab11a55b @hone hone committed Mar 6, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/bundler/dsl.rb
View
6 lib/bundler/dsl.rb
@@ -104,7 +104,11 @@ def source(source, options = {})
return
else
@source = source
- options[:prepend] ? @sources.unshift(@source) : @sources << @source
+ if options[:prepend]
+ @sources = [@source] | @sources
+ else
+ @sources = @sources | [@source]
+ end
yield if block_given?
return @source

0 comments on commit 6d4962d

Please sign in to comment.