diff --git a/CHANGELOG.md b/CHANGELOG.md index 72d1a22..56b5dd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html ### Compatible changes +## 0.11.1 2024-08-22 + +### Compatible changes + +- Fix: Use ActiveSupport.on_load for extending ActiveRecord + ## 0.11.0 2024-03-18 ### Breaking changes diff --git a/Gemfile.4.2.mysql2.lock b/Gemfile.4.2.mysql2.lock index 4ac561a..acf0086 100644 --- a/Gemfile.4.2.mysql2.lock +++ b/Gemfile.4.2.mysql2.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.4.2.pg.lock b/Gemfile.4.2.pg.lock index bb92a6e..2459b2d 100644 --- a/Gemfile.4.2.pg.lock +++ b/Gemfile.4.2.pg.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.5.2.mysql2.lock b/Gemfile.5.2.mysql2.lock index 45d6905..4ab0fc2 100644 --- a/Gemfile.5.2.mysql2.lock +++ b/Gemfile.5.2.mysql2.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.5.2.pg.lock b/Gemfile.5.2.pg.lock index a2ed4c6..fa4ba2f 100644 --- a/Gemfile.5.2.pg.lock +++ b/Gemfile.5.2.pg.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.6.0.mysql2.lock b/Gemfile.6.0.mysql2.lock index 9b5a724..0bfbe0f 100644 --- a/Gemfile.6.0.mysql2.lock +++ b/Gemfile.6.0.mysql2.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.6.0.pg.lock b/Gemfile.6.0.pg.lock index 9eb3c57..6ad03ae 100644 --- a/Gemfile.6.0.pg.lock +++ b/Gemfile.6.0.pg.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.6.1.mysql2.lock b/Gemfile.6.1.mysql2.lock index 0cf8c22..41c4480 100644 --- a/Gemfile.6.1.mysql2.lock +++ b/Gemfile.6.1.mysql2.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.6.1.pg.lock b/Gemfile.6.1.pg.lock index 7003c09..256a2b4 100644 --- a/Gemfile.6.1.pg.lock +++ b/Gemfile.6.1.pg.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.7.0.mysql2.lock b/Gemfile.7.0.mysql2.lock index 6f048f5..1235246 100644 --- a/Gemfile.7.0.mysql2.lock +++ b/Gemfile.7.0.mysql2.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/Gemfile.7.0.pg.lock b/Gemfile.7.0.pg.lock index 3cccfa6..c67281e 100644 --- a/Gemfile.7.0.pg.lock +++ b/Gemfile.7.0.pg.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - minidusen (0.11.0) + minidusen (0.11.1) activerecord (>= 3.2) activesupport (>= 3.2) edge_rider (>= 0.2.5) diff --git a/lib/minidusen/active_record_ext.rb b/lib/minidusen/active_record_ext.rb index 083cbb5..f891677 100644 --- a/lib/minidusen/active_record_ext.rb +++ b/lib/minidusen/active_record_ext.rb @@ -36,4 +36,6 @@ def where_like(conditions, options = {}) end end -ActiveRecord::Base.send(:extend, Minidusen::ActiveRecordExtensions::ClassMethods) +ActiveSupport.on_load(:active_record) do + ActiveRecord::Base.send(:extend, Minidusen::ActiveRecordExtensions::ClassMethods) +end diff --git a/lib/minidusen/version.rb b/lib/minidusen/version.rb index 1ae3156..32297e0 100644 --- a/lib/minidusen/version.rb +++ b/lib/minidusen/version.rb @@ -1,3 +1,3 @@ module Minidusen - VERSION = '0.11.0' + VERSION = '0.11.1' end