diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-14 16:24:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-14 16:24:21 +0000 |
commit | 2ee45e8cac909991ddf782a8d2947ae99473404a (patch) | |
tree | 48456af96778489fcc65f77c347140adf206d66a /vendor/plugins/engines | |
parent | c4a218358f499b6252874b8260ffa475fd7be3d7 (diff) | |
download | redmine-2ee45e8cac909991ddf782a8d2947ae99473404a.tar.gz redmine-2ee45e8cac909991ddf782a8d2947ae99473404a.zip |
Use Object#tap instead of #returning (#6887).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4406 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor/plugins/engines')
-rw-r--r-- | vendor/plugins/engines/generators/plugin_migration/plugin_migration_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/plugins/engines/generators/plugin_migration/plugin_migration_generator.rb b/vendor/plugins/engines/generators/plugin_migration/plugin_migration_generator.rb index d6ecbd489..900dc056b 100644 --- a/vendor/plugins/engines/generators/plugin_migration/plugin_migration_generator.rb +++ b/vendor/plugins/engines/generators/plugin_migration/plugin_migration_generator.rb @@ -76,7 +76,7 @@ class PluginMigrationGenerator < Rails::Generator::Base # plugin names involved is shorter than 230 characters that one will be # used. Otherwise a shorter name will be returned. def build_migration_name - returning descriptive_migration_name do |name| + descriptive_migration_name.tap do |name| name.replace short_migration_name if name.length > MAX_FILENAME_LENGTH end end |