Skip to content

Commit

Permalink
Revert "More meaningful naming"
Browse files Browse the repository at this point in the history
This reverts commit 2bf65df.
  • Loading branch information
mostlyobvious committed Jan 30, 2023
1 parent b5a4e30 commit b599d6a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ class Event < ::ActiveRecord::Base
self.primary_key = :id
self.table_name = "event_store_events"

skip_json_serialization = ->(initial_column_type) do
%i[json jsonb].include?(initial_column_type.type) ? ActiveModel::Type::Value.new : initial_column_type
end
skip_json_serialization = ->(type) { %i[json jsonb].include?(type.type) ? ActiveModel::Type::Value.new : type }

attribute :data, skip_json_serialization
attribute :metadata, skip_json_serialization
Expand Down

0 comments on commit b599d6a

Please sign in to comment.