From 9a8f3f916141ee04d567d8bb739dd7c06803dec3 Mon Sep 17 00:00:00 2001 From: Klaus Weidinger Date: Tue, 27 Aug 2024 10:38:26 +0200 Subject: [PATCH 1/2] Hook into railties correctly --- lib/consul/active_record.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/consul/active_record.rb b/lib/consul/active_record.rb index 0b8c95f..808fbad 100644 --- a/lib/consul/active_record.rb +++ b/lib/consul/active_record.rb @@ -14,4 +14,6 @@ def authorize_values_for(property, options = {}) end end -ActiveRecord::Base.send(:extend, Consul::ActiveRecord) +ActiveSupport.on_load(:active_record) do + extend(Consul::ActiveRecord) +end From 02521f5b68fe3c0ce3b1e0d94c57f318703f3387 Mon Sep 17 00:00:00 2001 From: Klaus Weidinger Date: Tue, 27 Aug 2024 10:44:10 +0200 Subject: [PATCH 2/2] Release version 1.3.2 --- CHANGELOG.md | 6 ++++++ Gemfile.5-2.lock | 2 +- Gemfile.6-1.lock | 2 +- Gemfile.7-0.lock | 2 +- Gemfile.7-1.lock | 2 +- lib/consul/version.rb | 2 +- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4e48c5..b286bf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html ### Compatible changes +## 1.3.2 - 2023-08-27 + +### Compatible changes + +- Hook into railties correctly + ## 1.3.1 - 2023-02-28 ### Compatible changes diff --git a/Gemfile.5-2.lock b/Gemfile.5-2.lock index 5d98c13..26ac69f 100644 --- a/Gemfile.5-2.lock +++ b/Gemfile.5-2.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - consul (1.3.1) + consul (1.3.2) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.3.0) diff --git a/Gemfile.6-1.lock b/Gemfile.6-1.lock index 5227ed9..512fde7 100644 --- a/Gemfile.6-1.lock +++ b/Gemfile.6-1.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - consul (1.3.1) + consul (1.3.2) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.3.0) diff --git a/Gemfile.7-0.lock b/Gemfile.7-0.lock index b94376f..f80112d 100644 --- a/Gemfile.7-0.lock +++ b/Gemfile.7-0.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - consul (1.3.1) + consul (1.3.2) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.3.0) diff --git a/Gemfile.7-1.lock b/Gemfile.7-1.lock index 73c02c3..2125305 100644 --- a/Gemfile.7-1.lock +++ b/Gemfile.7-1.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - consul (1.3.1) + consul (1.3.2) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.3.0) diff --git a/lib/consul/version.rb b/lib/consul/version.rb index d12be3a..082a00d 100644 --- a/lib/consul/version.rb +++ b/lib/consul/version.rb @@ -1,3 +1,3 @@ module Consul - VERSION = '1.3.1' + VERSION = '1.3.2' end