Sha256: 2289e15c146461caf8d17012175a5f3b05738c2259854775a50489c660f16808

Contents?: true

Size: 284 Bytes

Versions: 4

Compression:

Stored size: 284 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
paper_trail_without_deprecated-3.0.0.beta1 lib/paper_trail/serializers/yaml.rb
paper_trail-3.0.0.beta1 lib/paper_trail/serializers/yaml.rb
paper_trail-2.7.2 lib/paper_trail/serializers/yaml.rb
paper_trail-2.7.1 lib/paper_trail/serializers/yaml.rb