Skip to content

Commit

Permalink
Merge branch 'rails' of github.com:winton/gem_template
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Jan 3, 2011
2 parents 2d214bc + 4de0a1c commit d0182e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/acts_as_archive/gems.rb
Expand Up @@ -38,7 +38,10 @@ def activate(*gems)

gems.flatten.collect(&:to_sym).each do |name|
version = @versions[name]
if defined?(gem)
vendor = File.expand_path("../../../vendor/#{name}/lib", __FILE__)
if File.exists?(vendor)
$:.unshift vendor
elsif defined?(gem)
gem name.to_s, version
else
puts "#{name} #{"(#{version})" if version} failed to activate" if @config.warn
Expand Down

0 comments on commit d0182e8

Please sign in to comment.