cirandas.net

ref: master

config/initializers/default_theme.rb


1
2
3
4
5
6
7
if File.writable?(Rails.root)
  # create the symlink to the default theme if it does not exist
  default = Rails.root.join('public', 'designs', 'themes', 'default')
  if !File.exists?(default)
    File.symlink('noosfero', default)
  end
end