diff options
Diffstat (limited to 'app/helpers/admin')
-rw-r--r-- | app/helpers/admin/background_migrations_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/admin/background_migrations_helper.rb b/app/helpers/admin/background_migrations_helper.rb index 6516ea27b2c..79bb13810bb 100644 --- a/app/helpers/admin/background_migrations_helper.rb +++ b/app/helpers/admin/background_migrations_helper.rb @@ -4,13 +4,13 @@ module Admin module BackgroundMigrationsHelper def batched_migration_status_badge_variant(migration) variants = { - 'active' => :info, - 'paused' => :warning, - 'failed' => :danger, - 'finished' => :success + active: :info, + paused: :warning, + failed: :danger, + finished: :success } - variants[migration.status] + variants[migration.status_name] end # The extra logic here is needed because total_tuple_count is just |