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

Version Path
scrivito_tabbed_content_widget-0.0.60 app/controllers/scrivito_tabbed_content_widget/tabbed_content_widget_controller.rb
scrivito_tabbed_content_widget-0.0.2 app/controllers/scrivito_tabbed_content_widget/tabbed_content_widget_controller.rb
scrivito_tabbed_content_widget-0.0.1 app/controllers/scrivito_tabbed_content_widget/tabbed_content_widget_controller.rb