Skip to content

Commit

Permalink
inheritance column setter needs to be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
desheikh committed Jan 2, 2025
1 parent e006a61 commit ea36d20
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 1.5.6 - 2025-01-02
### Changed
- inheritance column setter needs to be a string

## 1.5.5 - 2024-12-23
### Changed
- Validate value and type of `aggregate_id` between Event and Entity
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
eventsimple (1.5.5)
eventsimple (1.5.6)
concurrent-ruby (>= 1.2.3)
dry-struct (~> 1.6)
dry-types (~> 1.7)
Expand Down
2 changes: 1 addition & 1 deletion lib/eventsimple/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def drives_events_for(aggregate_klass, aggregate_id:, events_namespace: nil)
class_attribute :_on_invalid_transition
self._on_invalid_transition = ->(error) { raise error }

self.inheritance_column = :type
self.inheritance_column = 'type'
self.store_full_sti_class = false

attribute :metadata, MetadataType.new
Expand Down
2 changes: 1 addition & 1 deletion lib/eventsimple/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Eventsimple
VERSION = '1.5.5'
VERSION = '1.5.6'
end

0 comments on commit ea36d20

Please sign in to comment.