Remove threequals from ruby files

This commit is contained in:
Thomas Cioppettini
2014-03-26 12:20:41 -07:00
parent 2beaeed36d
commit 38882eb1a7
10 changed files with 25 additions and 26 deletions

View File

@ -197,7 +197,7 @@ class Guardian
end
def can_send_private_message?(target)
(User === target || Group === target) &&
(target.is_a?(Group) || target.is_a?(User)) &&
# User is authenticated
authenticated? &&
# Can't send message to yourself
@ -221,7 +221,7 @@ class Guardian
end
def is_me?(other)
other && authenticated? && User === other && @user == other
other && authenticated? && other.is_a?(User) && @user == other
end
def is_not_me?(other)