mirror of
https://github.com/redmine/redmine.git
synced 2025-12-23 08:50:32 +01:00
Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
9
vendor/plugins/engines/lib/engines.rb
vendored
9
vendor/plugins/engines/lib/engines.rb
vendored
@@ -43,7 +43,7 @@ module Engines
|
||||
|
||||
# List of extensions to load, can be changed in init.rb before calling Engines.init
|
||||
mattr_accessor :rails_extensions
|
||||
self.rails_extensions = %w(action_mailer asset_helpers routing migrations dependencies)
|
||||
self.rails_extensions = %w(action_mailer asset_helpers form_tag_helpers routing migrations dependencies)
|
||||
|
||||
# The name of the public directory to mirror public engine assets into.
|
||||
# Defaults to <tt>RAILS_ROOT/public/plugin_assets</tt>.
|
||||
@@ -143,6 +143,11 @@ module Engines
|
||||
source_dirs = source_files.select { |d| File.directory?(d) }
|
||||
source_files -= source_dirs
|
||||
|
||||
unless source_files.empty?
|
||||
base_target_dir = File.join(destination, File.dirname(source_files.first).gsub(source, ''))
|
||||
FileUtils.mkdir_p(base_target_dir)
|
||||
end
|
||||
|
||||
source_dirs.each do |dir|
|
||||
# strip down these paths so we have simple, relative paths we can
|
||||
# add to the destination
|
||||
@@ -166,4 +171,4 @@ module Engines
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user