lib/catissue/database.rb
def collectible_event_update_workaround?(obj, operation)
      # Is this an update?
      return false unless Collectible === obj and operation == :update
      last = @operations.last
      # Is there a nesting operation?
      return false unless last
      # Is the nesting operation subject a CEP?
      return false unless CaTissue::CollectibleEventParameters === last.subject
      # Is the nesting operation subject owned by the current object?
      return false unless last.subject.owner == obj
      prev = penultimate_save_operation
      # Is the outer save operation subject the current object?
      prev and prev.subject == obj
    end
def collectible_event_update_workaround?(obj, operation)
      # Is this an update?
      return false unless Collectible === obj and operation == :update
      last = @operations.last
      # Is there a nesting operation?
      return false unless last
      # Is the nesting operation subject a CEP?
      return false unless CaTissue::CollectibleEventParameters === last.subject
      # Is the nesting operation subject owned by the current object?
      return false unless last.subject.owner == obj
      prev = penultimate_save_operation
      # Is the outer save operation subject the current object?
      prev and prev.subject == obj
    end
def collectible_event_update_workaround? ( obj , operation ) # Is this an update? return false unless Collectible === obj and operation == :update last = @operations . last # Is there a nesting operation? return false unless last # Is the nesting operation subject a CEP? return false unless CaTissue :: CollectibleEventParameters === last . subject # Is the nesting operation subject owned by the current object? return false unless last . subject . owner == obj prev = penultimate_save_operation # Is the outer save operation subject the current object? prev and prev . subject == obj end
Returns whether operation is the second Update described in {#recursive_save?}.
Returns whether operation is the second Update described in { #recursive_save? } .