Class: Para::Admin::NestedFormsController

Inherits:
ComponentController show all
Defined in:
app/controllers/para/admin/nested_forms_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#current_ability, #current_admin

Methods included from BaseHelper

#find_partial_for, #find_relation_name_for, #flash_message, #registered_components_options, #resource_title_for, #template_path_lookup

Methods included from Helpers::ResourceName

#resource_name

Methods inherited from Para::ApplicationController

#admin?

Instance Method Details

#showObject



4
5
6
7
8
9
10
11
# File 'app/controllers/para/admin/nested_forms_controller.rb', line 4

def show
  @model = params[:model_name].constantize
  @object = params[:id] ? @model.find(params[:id]) : @model.new
  @object_name = params[:object_name]
  @builder_options = params[:builder_options]&.permit! || {}

  render layout: false
end