lib/acts_as_versioned.rb
def version_condition_met?
          case
          when version_condition.is_a?(Symbol)
            send(version_condition)
          when version_condition.respond_to?(:call) && (version_condition.arity == 1 || version_condition.arity == -1)
            version_condition.call(self)
          else
            version_condition
          end
        end
# Checks condition set in the :if option to check whether a revision should be created or not.  Override this for
# custom version condition checking.
Checks condition set in the :if option to check whether a revision should be created or not.  Override this for
custom version condition checking.
Checks condition set in the : if option to check whether a revision should be created or not . Override this for custom version condition checking .
def version_condition_met?
          case
          when version_condition.is_a?(Symbol)
            send(version_condition)
          when version_condition.respond_to?(:call) && (version_condition.arity == 1 || version_condition.arity == -1)
            version_condition.call(self)
          else
            version_condition
          end
        end
def version_condition_met? case when version_condition . is_a? ( Symbol ) send ( version_condition ) when version_condition . respond_to? ( :call ) && ( version_condition . arity == 1 || version_condition . arity == - 1 ) version_condition . call ( self ) else version_condition end end
Checks condition set in the :if option to check whether a revision should be created or not.
Checks condition set in the : if option to check whether a revision should be created or not .