When we added this setting in commit 9979b5399, we disabled it by
default so it would be compatible with existing installations.
Since then, we've released version 1.4, which adds the settings to
existing databases. That means we can now enable it by default and
existing installations won't be affected.
28 lines
900 B
Ruby
28 lines
900 B
Ruby
section "Creating Settings" do
|
|
Setting.reset_defaults
|
|
|
|
{
|
|
"facebook_handle": "CONSUL",
|
|
"feature.featured_proposals": "true",
|
|
"feature.map": "true",
|
|
"instagram_handle": "CONSUL",
|
|
"mailer_from_address": "noreply@consul.dev",
|
|
"mailer_from_name": "CONSUL",
|
|
"meta_description": "Citizen participation tool for an open, "\
|
|
"transparent and democratic government",
|
|
"meta_keywords": "citizen participation, open government",
|
|
"meta_title": "CONSUL",
|
|
"org_name": "CONSUL",
|
|
"proposal_code_prefix": "MAD",
|
|
"proposal_notification_minimum_interval_in_days": 0,
|
|
"telegram_handle": "CONSUL",
|
|
"twitter_handle": "@consul_dev",
|
|
"twitter_hashtag": "#consul_dev",
|
|
"url": "http://localhost:3000",
|
|
"votes_for_proposal_success": "100",
|
|
"youtube_handle": "CONSUL"
|
|
}.each do |name, value|
|
|
Setting[name] = value
|
|
end
|
|
end
|