Sha256: 92420770b32c7a2f3408bef55dfc1f172fb26016f5f49b4862f43b7cad2e8dde

Contents?: true

Size: 623 Bytes

Versions: 22

Compression:

Stored size: 623 Bytes

Contents

module Kuhsaft
  module Cms
    class PagePartsController < AdminController
      
      def index
      end

      def show
      end

      def new
      end

      def create
      end

      def edit
      end

      def update
        if @page_part = Kuhsaft::PagePart::Content.find(params[:id])
          @page_part.reposition params[:reposition] if params[:reposition].present? || params.key?(:reposition)
        end
        render 'update'
      end

      def destroy
        @page_part = Kuhsaft::PagePart::Content.find(params[:id])
        @page_part.destroy
        render 'destroy'
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kuhsaft-0.2.legacy4 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.4.legacy3 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.2.legacy3 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.2.legacy2 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.2.legacy app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.4.legacy2 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.4.legacy app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.6 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.5 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.4 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.4.rc2 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.4.rc1 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.3 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.2 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.2.5 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.2.4 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.2.3 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.1 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.3.0 app/controllers/kuhsaft/cms/page_parts_controller.rb
kuhsaft-0.2.2 app/controllers/kuhsaft/cms/page_parts_controller.rb