technoweenie/acts_as_versioned — Issue #11: First save ignores :if condition
Author: Simbul
Created: 2011-10-13 10:58:59+00:00
State: open

When saving a versioned model for the first time, a version is created regardless of the `:if` condition.
I suppose there's a reason for this, but from my point of view when the `:if` condition is false no version should be saved, ever.

I think the behavior stems from line [391](https://github.com/technoweenie/acts_as_versioned/blob/master/lib/acts_as_versioned.rb#L391) in `acts_as_versioned.rb`.

@saving_version = new_record? || save_version?

Why do new records get to bypass the version saving conditions?