default_theme.rb 203 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 # create the symlink to the default theme if it does not exist default = File.join(RAILS_ROOT, 'public', 'designs', 'themes', 'default') if !File.exists?(default) File.symlink('noosfero', default) end