Sha256: c85156c936bd94f6b934af62fb81a33530a6d5bb870cd27ff1d17c13e183b93d
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
require "undo/gemspec" require "undo/config" module Undo require "undo/model" def self.configure(&block) block_given? ? block.call(config) : config end def self.config @config ||= Undo::Config.new end def self.wrap(object, *args) Model.new object, *args end def self.restore(uuid, options = {}) config.with(options) do |config| config.serializer.deserialize config.storage.fetch uuid end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
undo-0.0.2 | lib/undo.rb |