engines/adva_cms/vendor/plugins/globalize2_versioning/lib/globalize2_versioning.rb
def save_version?
            return false  if @no_revision
            return true   if new_record?
            change_fields = globalize_options[:if_changed].blank? ?
              globalize_options[:versioned] : globalize_options[:if_changed]
            ( change_fields.map {|k| k.to_s } & changed ).length > 0
          end
# Checks whether a new version should be saved or not.
Checks whether a new version should be saved or not.
Checks whether a new version should be saved or not .
def save_version?
            return false  if @no_revision
            return true   if new_record?
            change_fields = globalize_options[:if_changed].blank? ?
              globalize_options[:versioned] : globalize_options[:if_changed]
            ( change_fields.map {|k| k.to_s } & changed ).length > 0
          end
def save_version? return false if @no_revision return true if new_record? change_fields = globalize_options [ :if_changed ] . blank? ? globalize_options [ :versioned ] : globalize_options [ :if_changed ] ( change_fields . map { | k | k . to_s } & changed ) . length > 0 end
Checks whether a new version should be saved or not.
Checks whether a new version should be saved or not .