Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'rails' of github.com:winton/gem_template

  • Loading branch information...
commit d0182e82ff9cfedd99799659514360702cce2e61 2 parents 2d214bc + 4de0a1c
@winton authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/acts_as_archive/gems.rb
View
5 lib/acts_as_archive/gems.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.