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 Dec 9, 2024
1 parent c13dfc5 commit 1b623f1
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.5 - 2024-12-08
### Changed
- inheritance column setter needs to be a string

## 1.5.4 - 2024-12-05
### Changed
- Rails 8.0 is supported
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.4)
eventsimple (1.5.5)
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 @@ -19,7 +19,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.4'
VERSION = '1.5.5'
end

0 comments on commit 1b623f1

Please sign in to comment.