We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The changed? method returns true if and only if update_type is not equal to :no_change:
changed?
update_type
: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.
if update_type == :no_update
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
changed?
method returns true if and only ifupdate_type
is not equal to:no_change
:However,
update_type
can never be that value:I suspect it should be
if update_type == :no_update
as:no_change
appears to apply only to changes to attributes.The text was updated successfully, but these errors were encountered: