ABANDONED - MOVE ON
MIT License
= Virtus - Dirty Tracking
Support for dirty tracking of virtus attributes.
== Usage
class Post include Virtus include Virtus::DirtyTracking
attribute :title, String
attribute, :content, String
attribute, :meta, Hash
end
post = Post.new(:title => 'Foo', :meta => { :tags => ['red', 'green'] })
post.title = 'Bar'
post.dirty? # => true
post.attribute_dirty?(:title) # => true
post.meta[:tags] << 'blue'
post.attribute_dirty?(:meta) # => true
post.dirty_attributes # => {:title => 'Bar', :meta=>{:tags=>["red", "green", "blue"]}}
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2011 Piotr Solnica. See LICENSE for details.