diff --git a/lib/rollout/ui/version.rb b/lib/rollout/ui/version.rb index 06ebc33..0174169 100644 --- a/lib/rollout/ui/version.rb +++ b/lib/rollout/ui/version.rb @@ -1,5 +1,5 @@ class Rollout module UI - VERSION = "0.5.1" + VERSION = "0.5.2" end end diff --git a/lib/rollout/ui/web.rb b/lib/rollout/ui/web.rb index 87f0ae4..9533af1 100644 --- a/lib/rollout/ui/web.rb +++ b/lib/rollout/ui/web.rb @@ -50,7 +50,7 @@ class Web < Sinatra::Base rollout = config.get(:instance) actor = config.get(:actor, scope: self) feature_data = rollout.get(params[:feature_name]).data - if feature_data['updated_at'] && params[:last_updated_at] != feature_data['updated_at'] + if feature_data['updated_at'] && params[:last_updated_at].to_s != feature_data['updated_at'].to_s redirect "#{feature_path(params[:feature_name])}?error=Rollout version outdated. Review changes below and try again." end with_rollout_context(rollout, actor: actor) do