Class: Customize::InheritNodesController

Inherits:
InheritedResources::Base
  • Object
show all
Includes:
InheritedResources::DSL
Defined in:
app/controllers/customize/inherit_nodes_controller.rb

Instance Method Summary collapse

Instance Method Details

#selectObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'app/controllers/customize/inherit_nodes_controller.rb', line 14

def select
	select! do |format|
		node = Customize::InheritNode.find params[:target]
		begin
			resource.node.inherit node.node
		rescue
		end
		format.json do
			render :json=>resource.save
		end
	end
end