Module: Versionable::ClassMethods

Defined in:
app/models/concerns/versionable.rb

Instance Method Summary collapse

Instance Method Details

#versionize(options = {}) ⇒ Object


45
46
47
48
49
50
# File 'app/models/concerns/versionable.rb', line 45

def versionize(options = {})
  if options[:exclude]
    self.versioning_excluded_attributes += [options[:exclude]].flatten
    self.versioning_excluded_attributes.uniq!
  end
end