Skip to content

Commit

Permalink
fixing issue in admin:import_files with file _session_.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
ckozus committed Jun 1, 2009
1 parent 59f214f commit 1202ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/administrate_me_tasks.rake
Expand Up @@ -43,7 +43,7 @@ namespace(:admin) do
path_to_commons = RAILS_ROOT + "/app/views/commons/"
FileUtils.mkdir(path_to_commons) unless File.exist?(path_to_commons)
files_to_copy = Dir["#{FILES_ROOT}/commons/*.html.erb"]
files_to_copy.reject! {|filename| File.basename(filename) == '_session.html.erb'}
files_to_copy.reject! {|filename| (File.basename(filename) == '_session.html.erb' && File.exist?("#{path_to_commons}_session.html.erb")) }
FileUtils.cp( files_to_copy, path_to_commons,
:verbose => true )
end
Expand Down

0 comments on commit 1202ac4

Please sign in to comment.