Commit 2edf8709e4405140ab586450d7a177da041ba957
1 parent
a53064e6
Exists in
staging
and in
42 other branches
Make all themes available by default
(ActionItem1675)
Showing
1 changed file
with
14 additions
and
0 deletions
Show diff stats
app/models/environment.rb
| ... | ... | @@ -575,6 +575,20 @@ class Environment < ActiveRecord::Base |
| 575 | 575 | end |
| 576 | 576 | end |
| 577 | 577 | |
| 578 | + before_create do |env| | |
| 579 | + env.settings[:themes] ||= %w[ | |
| 580 | + aluminium | |
| 581 | + butter | |
| 582 | + chameleon | |
| 583 | + chocolate | |
| 584 | + noosfero | |
| 585 | + orange | |
| 586 | + plum | |
| 587 | + scarletred | |
| 588 | + skyblue | |
| 589 | + ] | |
| 590 | + end | |
| 591 | + | |
| 578 | 592 | def community_template |
| 579 | 593 | Community.find_by_id settings[:community_template_id] |
| 580 | 594 | end | ... | ... |