Skip to content

Commit 91d2ace

Browse files
authored
inheritance column setter needs to be a string (#84)
The value of inheritance_column is expected to be a string, this was not enforced in rails versions < 8.
1 parent e006a61 commit 91d2ace

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## 1.5.6 - 2025-01-02
10+
### Changed
11+
- inheritance column setter needs to be a string
12+
913
## 1.5.5 - 2024-12-23
1014
### Changed
1115
- Validate value and type of `aggregate_id` between Event and Entity

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
eventsimple (1.5.5)
4+
eventsimple (1.5.6)
55
concurrent-ruby (>= 1.2.3)
66
dry-struct (~> 1.6)
77
dry-types (~> 1.7)

lib/eventsimple/event.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def drives_events_for(aggregate_klass, aggregate_id:, events_namespace: nil)
3131
class_attribute :_on_invalid_transition
3232
self._on_invalid_transition = ->(error) { raise error }
3333

34-
self.inheritance_column = :type
34+
self.inheritance_column = 'type'
3535
self.store_full_sti_class = false
3636

3737
attribute :metadata, MetadataType.new

lib/eventsimple/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Eventsimple
4-
VERSION = '1.5.5'
4+
VERSION = '1.5.6'
55
end

0 commit comments

Comments
 (0)