app/helpers/sti_routing_helper.rb
# NB: This differs from model_to_controller; until they're unified,
# make sure you have the right one.
This differs from model_to_controller; until they're unified,
make sure you have the right one.
This differs from model_to_controller ; until they ' re unified make sure you have the right one .
def controller_for_model(klass)
    model = ui_base_model(klass)
    if klass <= VmOrTemplate
      controller_for_vm(klass)
    elsif model.respond_to?(:db_name)
      model.db_name.underscore
    else
      model.name.underscore
    end
  end
def controller_for_model ( klass ) model = ui_base_model ( klass ) if klass <= VmOrTemplate controller_for_vm ( klass ) elsif model . respond_to? ( :db_name ) model . db_name . underscore else model . name . underscore end end
NB: This differs from model_to_controller; until they're unified,
make sure you have the right one.
NB : This differs from model_to_controller ; until they ' re unified make sure you have the right one .
klass
<not_specific>