-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "We don't introduce anything new over Value here"
This reverts commit c5812c2.
- Loading branch information
1 parent
ccc697e
commit 101540d
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
ruby_event_store-active_record/lib/ruby_event_store/active_record/event.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
ruby_event_store-active_record/lib/ruby_event_store/active_record/pass_through.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
require "active_record" | ||
|
||
module RubyEventStore | ||
module ActiveRecord | ||
class PassThrough < ::ActiveRecord::Type::Value | ||
def serialize(value) | ||
value | ||
end | ||
|
||
def deserialize(value) | ||
value | ||
end | ||
end | ||
end | ||
end |