lib/vtk/commands/module/controller.rb in vtk-0.5.0 vs lib/vtk/commands/module/controller.rb in vtk-0.7.0

- old
+ new

@@ -21,11 +21,11 @@ end private def create_controller(name, options) - component_name = options[:component_name] || name - system("rails g module_component #{name} method:controller component_name:#{component_name}") + module_name = options[:module_name] + system("rails g module_component #{module_name} method:controller component_name:#{name}") end end end end end