mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
add empty line after guard clause to lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20625 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
658e95afd2
commit
792fbabecb
@ -42,8 +42,8 @@ class RedminePluginModelGenerator < Rails::Generators::NamedBase
|
|||||||
def copy_templates
|
def copy_templates
|
||||||
template 'model.rb.erb', "#{plugin_path}/app/models/#{model.underscore}.rb"
|
template 'model.rb.erb', "#{plugin_path}/app/models/#{model.underscore}.rb"
|
||||||
template 'unit_test.rb.erb', "#{plugin_path}/test/unit/#{model.underscore}_test.rb"
|
template 'unit_test.rb.erb', "#{plugin_path}/test/unit/#{model.underscore}_test.rb"
|
||||||
|
|
||||||
return unless options[:migration]
|
return unless options[:migration]
|
||||||
|
|
||||||
migration_filename = "%.14d_#{@migration_filename}.rb" % migration_number
|
migration_filename = "%.14d_#{@migration_filename}.rb" % migration_number
|
||||||
template "migration.rb", "#{plugin_path}/db/migrate/#{migration_filename}"
|
template "migration.rb", "#{plugin_path}/db/migrate/#{migration_filename}"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user