mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Fix: redmine_plugin_controller generates camelcase filename (#28668).
Patch by Toru Takahashi. git-svn-id: http://svn.redmine.org/redmine/trunk@17325 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
00b85dc8d9
commit
c9a216b816
@ -14,12 +14,12 @@ class RedminePluginControllerGenerator < Rails::Generators::NamedBase
|
||||
end
|
||||
|
||||
def copy_templates
|
||||
template 'controller.rb.erb', "#{plugin_path}/app/controllers/#{controller}_controller.rb"
|
||||
template 'helper.rb.erb', "#{plugin_path}/app/helpers/#{controller}_helper.rb"
|
||||
template 'functional_test.rb.erb', "#{plugin_path}/test/functional/#{controller}_controller_test.rb"
|
||||
template 'controller.rb.erb', "#{plugin_path}/app/controllers/#{controller.underscore}_controller.rb"
|
||||
template 'helper.rb.erb', "#{plugin_path}/app/helpers/#{controller.underscore}_helper.rb"
|
||||
template 'functional_test.rb.erb', "#{plugin_path}/test/functional/#{controller.underscore}_controller_test.rb"
|
||||
# View template for each action.
|
||||
actions.each do |action|
|
||||
path = "#{plugin_path}/app/views/#{controller}/#{action}.html.erb"
|
||||
path = "#{plugin_path}/app/views/#{controller.underscore}/#{action}.html.erb"
|
||||
@action_name = action
|
||||
template 'view.html.erb', path
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user