-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
The changed?
method returns true if and only if update_type
is not equal to :no_change
:
def changed?
if update_type == :no_change
false
else
true
end
end
However, update_type
can never be that value:
def update_type
case raw_update_type
when '<'
:sent
when '>'
:recv
when 'c'
:change
when 'h'
:hard_link
when '.'
:no_update
when '*'
:message
end
end
I suspect it should be if update_type == :no_update
as :no_change
appears to apply only to changes to attributes.
Metadata
Metadata
Assignees
Labels
No labels