def diff_since_version(version)
      other_audit = auditable.audits.where("version <= ? AND id != ?", version, id).order("version DESC").limit(1).first

      diff(other_audit)
    end
def diff_since_version(version)
      other_audit = auditable.audits.where("version <= ? AND id != ?", version, id).order("version DESC").limit(1).first

      diff(other_audit)
    end
def diff_since_version ( version ) other_audit = auditable . audits . where ( "version <= ? AND id != ?" , version , id ) . order ( "version DESC" ) . limit ( 1 ) . first diff ( other_audit ) end
Diff this audit with the latest audit created before this version
Diff this audit with the latest audit created before this version