From 63f8b02b09dec0b96601f58d00a2708de324e477 Mon Sep 17 00:00:00 2001 From: Andrey Novikov Date: Fri, 7 Feb 2025 14:59:03 +0900 Subject: [PATCH] 1.6.0: Preserve `I18n.locale` in callbacks --- CHANGELOG.md | 9 +++++++++ Gemfile.lock | 2 +- lib/after_commit_everywhere/version.rb | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfa1478..64f4c89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## Unreleased + +## 1.6.0 (2025-02-07) + +### Added + +- I18n support: preserve `I18n.locale` setting from when `after_commit` is called and restore it for callback execution. [Pull request #36](https://github.com/Envek/after_commit_everywhere/pull/36) by [Bilka2][] + ## 1.5.0 (2024-12-09) ### Added @@ -156,3 +164,4 @@ See [#11](https://github.com/Envek/after_commit_everywhere/issues/11) for discus [@quentindemetz]: https://github.com/quentindemetz "Quentin de Metz" [@A1090]: https://github.com/A1090 "Tabac Andreina" [@kevink1103]: https://github.com/kevink1103 "Kevin (bum)" +[Bilka2]: https://github.com/Bilka2 "Bilka" diff --git a/Gemfile.lock b/Gemfile.lock index 5835794..612dbfe 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - after_commit_everywhere (1.5.0) + after_commit_everywhere (1.6.0) activerecord (>= 4.2) activesupport diff --git a/lib/after_commit_everywhere/version.rb b/lib/after_commit_everywhere/version.rb index fc3ce08..4c46c65 100644 --- a/lib/after_commit_everywhere/version.rb +++ b/lib/after_commit_everywhere/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module AfterCommitEverywhere - VERSION = "1.5.0" + VERSION = "1.6.0" end