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

View File

@@ -0,0 +1,16 @@
class Admin::Widget::FeedsController < Admin::BaseController
def update
@feed = ::Widget::Feed.find(params[:id])
@feed.update(feed_params)
render nothing: true
end
private
def feed_params
params.require(:widget_feed).permit(:limit)
end
end