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
I am getting the following error when calling methods like disabled? and locked? on certain users:
ArgumentError: method name must be a Symbol but String is given
The fix seems to be not accessing variables in dot notation and instead I extended the class to include:
def is_locked? !self[:lockoutTime].nil? && self[:lockoutTime].to_i != 0 end
def is_disabled? self[:userAccountControl].to_i & UAC_ACCOUNT_DISABLED != 0 end
Anyone else getting this error? I am running ruby 2.3 by the way
The text was updated successfully, but these errors were encountered:
Yes, getting this error too. Running Ruby 2.3.1.
Sorry, something went wrong.
Also getting this error on 2.3.4
No branches or pull requests
I am getting the following error when calling methods like disabled? and locked? on certain users:
ArgumentError: method name must be a Symbol but String is given
The fix seems to be not accessing variables in dot notation and instead I extended the class to include:
def is_locked?
!self[:lockoutTime].nil? && self[:lockoutTime].to_i != 0
end
def is_disabled?
self[:userAccountControl].to_i & UAC_ACCOUNT_DISABLED != 0
end
Anyone else getting this error? I am running ruby 2.3 by the way
The text was updated successfully, but these errors were encountered: