]> source.dussan.org Git - redmine.git/commitdiff
add empty line after guard clause to lib/generators/redmine_plugin_model/redmine_plug...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 11 Dec 2020 14:17:57 +0000 (14:17 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 11 Dec 2020 14:17:57 +0000 (14:17 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20625 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb

index e9c5c1f1a79789c9a8bbdeb36789408f95673206..50d2fddcb2cea100a1a3e6aca4a5bd54889f963b 100644 (file)
@@ -42,8 +42,8 @@ class RedminePluginModelGenerator < Rails::Generators::NamedBase
   def copy_templates
     template 'model.rb.erb', "#{plugin_path}/app/models/#{model.underscore}.rb"
     template 'unit_test.rb.erb', "#{plugin_path}/test/unit/#{model.underscore}_test.rb"
-
     return unless options[:migration]
+
     migration_filename = "%.14d_#{@migration_filename}.rb" % migration_number
     template "migration.rb", "#{plugin_path}/db/migrate/#{migration_filename}"
   end