Skip to content

Commit

Permalink
Moved default values of kandan settings to kandan config yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabceb committed Feb 22, 2013
1 parent 101df98 commit 7e5c285
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/setting.rb
Expand Up @@ -37,7 +37,7 @@ def validate_public_site
end

def self.default_values
return {:max_rooms => 99, :public_site => true }
{:max_rooms => Kandan::Config.options[:max_rooms], :public_site => Kandan::Config.options[:public_site]}
end

# Helper methods to be used while we don't need to deal with multi-tenancy
Expand Down
4 changes: 4 additions & 0 deletions config/kandan_settings.yml
Expand Up @@ -9,3 +9,7 @@
:name: "Faye"

:per_page: 30

:max_rooms: 99

:public_site: true

0 comments on commit 7e5c285

Please sign in to comment.