Skip to content

Commit

Permalink
small fix in autoupdating
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Semyonov committed Sep 15, 2009
1 parent 67b6774 commit 7162d6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tiny_mce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def self.install_or_update_tinymce
dest = File.join(Rails.public_path, 'javascripts', 'tiny_mce')
tiny_mce_js = File.join(dest, 'tiny_mce.js')
unless File.exists?(tiny_mce_js) && FileUtils.identical?(File.join(orig, 'tiny_mce.js'), tiny_mce_js)
if File.exists?(dest) && # upgrade
if File.exists?(dest)
# upgrade
begin
puts "Removing directory #{dest}..."
FileUtils.rm_rf dest
Expand Down

0 comments on commit 7162d6d

Please sign in to comment.