Sha256: 472438c7f4ed8c8e5b11a0d2169eb46068d69986ca8f47fe59c667db7ace70d1
Contents?: true
Size: 306 Bytes
Versions: 8
Compression:
Stored size: 306 Bytes
Contents
module EndState module Finalizers class Persistence < EndState::Finalizer def call return false unless object.respond_to? :save !!(object.save) end def rollback return true unless object.respond_to? :save !!(object.save) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems