Module: Versioned::ClassMethods

Defined in:
lib/versioned/versioned.rb

Instance Method Summary collapse

Instance Method Details

#versioned(opts = {}) ⇒ Object



7
8
9
10
# File 'lib/versioned/versioned.rb', line 7

def versioned(opts={})
  self.send(:include, Versioned::Document)
  self.max_versions = opts[:max].to_i
end