mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
17 lines
288 B
Ruby
17 lines
288 B
Ruby
require 'yaml'
|
|
|
|
module PaperTrail
|
|
module Serializers
|
|
module YAML
|
|
extend self # makes all instance methods become module methods as well
|
|
|
|
def load(string)
|
|
::YAML.load string
|
|
end
|
|
|
|
def dump(object)
|
|
::YAML.dump object
|
|
end
|
|
end
|
|
end
|
|
end
|