Add option to configure feed items displayed in homepage

This commit is contained in:
rgarcia
2018-05-29 19:58:04 +02:00
parent 7c17eea6a3
commit b672a4550d
12 changed files with 90 additions and 44 deletions

7
app/helpers/settings.rb Normal file
View File

@@ -0,0 +1,7 @@
module SettingsHelper
def setting_for_widget(widget)
Setting.where(key: 'feature.user.recommendations').first
end
end