Sha256: 7b402837be301e409fd1587b84ee1647e60a3d314a2d1eacd9c443a95f0d073a
Contents?: true
Size: 402 Bytes
Versions: 3
Compression:
Stored size: 402 Bytes
Contents
module ScrivitoTabbedContentWidget class TabbedContentWidgetController < CmsController layout false def add_new_tab widget = Obj.find(params[:obj]).widget_from_pool(params[:widget]) widget.update(tabs: widget.tabs << TabbedContentTabWidget.new()) #TODO: check for success and return appropriate result render "tabbed_content_widget/add_new_tab" end end end
Version data entries
3 entries across 3 versions & 1 rubygems