Sha256: 8f6ec0ebda120dcd3987912ae7a4fdb50808b91a407b4e4b5ebc3c504d09c208
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
# Matic Matic adds attribute accessors and dirty tracking to Mongomatic. ## Examples class Person < Mongomatic::Base include Matic field :name end person = Person.new person.name = "John Doe" person.name_changed? => true person.changes["name"] => [nil, "John Doe"] person.insert person.name_changed? => false person.changes["name"] => nil person.previous_changes["name"] => [nil, "John Doe"]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
matic-0.1.1 | README.md |
matic-0.1.0 | README.md |