From 102f6709f9f68476f82e2b213e848570bc8d60cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B0=D1=80=D0=B0=D1=81=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=90=D0=BD=D0=B0=D1=82=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=B5=D0=B2=D0=B8=D1=87?= Date: Wed, 15 Jan 2025 14:18:24 +0000 Subject: [PATCH] Resolve DEX-2707 "Feat//fix support enum for rails v6" --- CHANGELOG.md | 6 ++++++ app/models/sbmt/outbox/base_item.rb | 7 +++---- lib/sbmt/outbox/version.rb | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 124a245..5d616d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +## [6.13.1] - 2025-01-15 + +### Fixed + +- Fix support enum for rails < 7 + ## [6.13.0] - 2025-01-15 ### Added diff --git a/app/models/sbmt/outbox/base_item.rb b/app/models/sbmt/outbox/base_item.rb index 66df7fe..392da3e 100644 --- a/app/models/sbmt/outbox/base_item.rb +++ b/app/models/sbmt/outbox/base_item.rb @@ -1,14 +1,13 @@ # frozen_string_literal: true +# For compatibility with rails < 7 +# Remove when drop support of Rails < 7 require_relative "../../../../lib/sbmt/outbox/enum_refinement" +using Sbmt::Outbox::EnumRefinement module Sbmt module Outbox class BaseItem < Outbox.active_record_base_class - # For compatibility with rails < 7 - # Remove when drop support of Rails < 7 - using EnumRefinement - self.abstract_class = true class << self diff --git a/lib/sbmt/outbox/version.rb b/lib/sbmt/outbox/version.rb index bb5c0d5..a25f1b6 100644 --- a/lib/sbmt/outbox/version.rb +++ b/lib/sbmt/outbox/version.rb @@ -2,6 +2,6 @@ module Sbmt module Outbox - VERSION = "6.13.0" + VERSION = "6.13.1" end end