lib/paper_trail/record_trail.rb
# Executes the given method or block without creating a new version.
Executes the given method or block without creating a new version.
Executes the given method or block without creating a new version .
def without_versioning(method = nil)
      paper_trail_was_enabled = enabled_for_model?
      @record.class.paper_trail.disable
      if method
        if respond_to?(method)
          public_send(method)
        else
          @record.send(method)
        end
      else
        yield @record
      end
    ensure
      @record.class.paper_trail.enable if paper_trail_was_enabled
    end
def without_versioning ( method = nil ) paper_trail_was_enabled = enabled_for_model? @record . class . paper_trail . disable if method if respond_to? ( method ) public_send ( method ) else @record . send ( method ) end else yield @record end ensure @record . class . paper_trail . enable if paper_trail_was_enabled end
Executes the given method or block without creating a new version.
Executes the given method or block without creating a new version .
method
<not_specific>