Module: TNB::Revisable

Defined in:
lib/TheresNoBox/tnb.rb

Instance Method Summary collapse

Instance Method Details

#createRevisionObject



3
4
5
6
7
8
# File 'lib/TheresNoBox/tnb.rb', line 3

def createRevision
  revision = Revision.new
  revision.type = self.class.name
  revision.data = self.attributes
  revision.save
end