app/models/effective/trash.rb in effective_trash-0.4.3 vs app/models/effective/trash.rb in effective_trash-0.4.4
- old
+ new
@@ -12,10 +12,14 @@
# trashed_extra :string
# details :text
# timestamps
- serialize :details, Hash
+ if EffectiveResources.serialize_with_coder?
+ serialize :details, type: Hash, coder: YAML
+ else
+ serialize :details, Hash
+ end
scope :deep, -> { includes(:user, :trashed) }
scope :sorted, -> { order(:id) }
def to_s