Add Rake task to enable recommendations settings
This commit is contained in:
@@ -13,4 +13,11 @@ namespace :settings do
|
|||||||
Setting['feature.allow_attached_documents'] = true
|
Setting['feature.allow_attached_documents'] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Enable recommendations settings"
|
||||||
|
task enable_recommendations: :environment do
|
||||||
|
Setting['feature.user.recommendations'] = true
|
||||||
|
Setting['feature.user.recommendations_on_debates'] = true
|
||||||
|
Setting['feature.user.recommendations_on_proposals'] = true
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user