Sha256: 4b5cca6bbd581177a3d1b3522a295936345b768b5894e11c685e3f48295b006c

Contents?: true

Size: 402 Bytes

Versions: 71

Compression:

Stored size: 402 Bytes

Contents

class Admin::PagePartsController < Admin::ResourceController
  def create
    model.attributes = page_parts_params
    @controller_name = 'page'
    @template_name = 'edit'
    render partial: 'page_part', object: model,
           locals: { page_part_counter: params[:index].to_i }
  end

  private

  def page_parts_params
    params.require(:page_part).permit(:name, :filter_id, :content)
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 app/controllers/admin/page_parts_controller.rb
trusty-cms-7.0.2 app/controllers/admin/page_parts_controller.rb
trusty-cms-7.0.1 app/controllers/admin/page_parts_controller.rb
trusty-cms-7.0.0 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.3 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.2.1 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.2.2.1 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.2.0 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.1.2 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.1.1 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.0.5 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.0.4 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.0.3 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.0.2 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.0.1 app/controllers/admin/page_parts_controller.rb
trusty-cms-5.6.1 app/controllers/admin/page_parts_controller.rb
trusty-cms-6.0.0 app/controllers/admin/page_parts_controller.rb
trusty-cms-5.6.0 app/controllers/admin/page_parts_controller.rb
trusty-cms-5.5.9 app/controllers/admin/page_parts_controller.rb
trusty-cms-5.5.8 app/controllers/admin/page_parts_controller.rb