diff options
Diffstat (limited to 'vendor/plugins/engines/lib/engines.rb')
-rw-r--r-- | vendor/plugins/engines/lib/engines.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vendor/plugins/engines/lib/engines.rb b/vendor/plugins/engines/lib/engines.rb index 0e1bdbc9b..cb97e4702 100644 --- a/vendor/plugins/engines/lib/engines.rb +++ b/vendor/plugins/engines/lib/engines.rb @@ -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
\ No newline at end of file +end |