Class: Com::NodesController

Inherits:
BaseController show all
Defined in:
app/controllers/com/nodes_controller.rb

Constant Summary

Constants included from RailsCom::Application

RailsCom::Application::LOCALE_MAP

Instance Method Summary collapse

Methods included from RailsCom::Application

#current_title, #default_form_params, #default_params, #json_format?, #set_country, #set_flash, #set_locale, #set_timezone, #set_variant

Instance Method Details

#childrenObject



5
6
7
# File 'app/controllers/com/nodes_controller.rb', line 5

def children
  @new_node = params[:node_type].constantize.new
end

#outerObject



9
10
# File 'app/controllers/com/nodes_controller.rb', line 9

def outer
end

#outer_searchObject



12
13
14
# File 'app/controllers/com/nodes_controller.rb', line 12

def outer_search
  @entity = params[:entity_type].classify.constantize.new
end