technoweenie/acts_as_versioned — pull request #12 by Simbul (2011-10-13 16:17:08+00:00)
Title: Fixing :if condition on instance creation

Fix: when saving a versioned model for the first time (e.g. creating) a version was always saved, even with a false :if condition. No version should be saved when the :if condition is false.

This means that a saved instance of a model may have:

my_model.version.nil? # true
my_model.versions.empty? # true

This sounds acceptable to me though.