Sha256: 47b6e0e138f9eb6cb27c3a5f2d19895e8d7f03c2d1fdf44c0cd091702e03dc34
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
module ScrivitoElasticSliderWidget class ElasticSliderWidgetController < CmsController layout false def add_new_panel widget = Obj.find(params[:obj]).widget_from_pool(params[:widget]) widget.update(panels: widget.panels << ElasticSliderPanelWidget.new()) #TODO: check for success and return appropriate result render "elastic_slider_widget/add_new_panel" end end end
Version data entries
3 entries across 3 versions & 1 rubygems