diff --git a/CHANGELOG.md b/CHANGELOG.md index 410a8730..309ec73c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -# [0.30.4] - 2025-07-25 +# [0.30.4] - 2025-07-26 ## Added - Prometheus metrics are now available at `/metrics`. Configure `METRICS_USERNAME` and `METRICS_PASSWORD` environment variables for basic authentication. All other prometheus-related environment variables are also necessary. +## Fixed + +- The Warden error in jobs is now fixed. #1556 + + # [0.30.3] - 2025-07-23 diff --git a/app/models/concerns/distance_convertible.rb b/app/models/concerns/distance_convertible.rb index 2a757303..30c7693b 100644 --- a/app/models/concerns/distance_convertible.rb +++ b/app/models/concerns/distance_convertible.rb @@ -37,11 +37,6 @@ module DistanceConvertible distance.to_f / conversion_factor end - def distance_for_user(user) - user_unit = user.safe_settings.distance_unit - distance_in_unit(user_unit) - end - module ClassMethods def convert_distance(distance_meters, unit) return 0.0 unless distance_meters.present? diff --git a/app/views/trips/_countries.html.erb b/app/views/trips/_countries.html.erb index 69a7fe08..0ae8f7e5 100644 --- a/app/views/trips/_countries.html.erb +++ b/app/views/trips/_countries.html.erb @@ -2,7 +2,7 @@
- <%= "#{human_date(trip.started_at)} – #{human_date(trip.ended_at)}, #{trip.distance_for_user(current_user).round} #{current_user.safe_settings.distance_unit}" %> + <%= "#{human_date(trip.started_at)} – #{human_date(trip.ended_at)}, #{trip.distance_in_unit(current_user.safe_settings.distance_unit).round} #{distance_unit}" %>