diff options
Diffstat (limited to 'lib/generators/redmine_plugin_controller/templates')
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/generators/redmine_plugin_controller/templates/controller.rb.erb b/lib/generators/redmine_plugin_controller/templates/controller.rb.erb index 2f4c70bd9..dddbf7017 100644 --- a/lib/generators/redmine_plugin_controller/templates/controller.rb.erb +++ b/lib/generators/redmine_plugin_controller/templates/controller.rb.erb @@ -1,4 +1,4 @@ -class <%= class_name %>Controller < ApplicationController +class <%= @controller_class %>Controller < ApplicationController unloadable <% actions.each do |action| -%> diff --git a/lib/generators/redmine_plugin_controller/templates/functional_test.rb.erb b/lib/generators/redmine_plugin_controller/templates/functional_test.rb.erb index 876bd79e2..df332fd21 100644 --- a/lib/generators/redmine_plugin_controller/templates/functional_test.rb.erb +++ b/lib/generators/redmine_plugin_controller/templates/functional_test.rb.erb @@ -1,6 +1,6 @@ require File.dirname(__FILE__) + '/../test_helper' -class <%= class_name %>ControllerTest < ActionController::TestCase +class <%= @controller_class %>ControllerTest < ActionController::TestCase # Replace this with your real tests. def test_truth assert true diff --git a/lib/generators/redmine_plugin_controller/templates/helper.rb.erb b/lib/generators/redmine_plugin_controller/templates/helper.rb.erb index 3fe2ecdc7..059e12f3b 100644 --- a/lib/generators/redmine_plugin_controller/templates/helper.rb.erb +++ b/lib/generators/redmine_plugin_controller/templates/helper.rb.erb @@ -1,2 +1,2 @@ -module <%= class_name %>Helper +module <%= @controller_class %>Helper end diff --git a/lib/generators/redmine_plugin_controller/templates/view.html.erb b/lib/generators/redmine_plugin_controller/templates/view.html.erb index c24afaa6e..1fdb03dc7 100644 --- a/lib/generators/redmine_plugin_controller/templates/view.html.erb +++ b/lib/generators/redmine_plugin_controller/templates/view.html.erb @@ -1 +1 @@ -<h2><%= class_name %>#<%= action %></h2> +<h2><%= @controller_class %>Controller#<%= @action_name %></h2> |