From 2edf8709e4405140ab586450d7a177da041ba957 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 7 Dec 2010 14:59:54 -0300 Subject: [PATCH] Make all themes available by default --- app/models/environment.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) diff --git a/app/models/environment.rb b/app/models/environment.rb index e62789a..6cee1d2 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -575,6 +575,20 @@ class Environment < ActiveRecord::Base end end + before_create do |env| + env.settings[:themes] ||= %w[ + aluminium + butter + chameleon + chocolate + noosfero + orange + plum + scarletred + skyblue + ] + end + def community_template Community.find_by_id settings[:community_template_id] end -- libgit2 0.21.2