Skip to content

openhood/mm-versioning

Repository files navigation

mm-versioning

Simple versioning for MongoMapper with proper specs.

Basic Usage

class Versioned do
  include MongoMapper::Document
  include MongoMapper::Plugins::Versioning
  key :title
  versioning
end
v = Versioned.new :title => "Alpha"
v.save!
v.versions.size # -> 1
v.update_attribute :title, "Beta"
v.versions.size # -> 2
v.versions.first.original.title # -> "Alpha"

Advanced Usage

See specs.

Licence

This gem is released under MIT Licence.

About

Simple versioning for MongoMapper with proper specs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published