Commiting
This commit is contained in:
@@ -13,7 +13,7 @@ class REST::GroupSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def has_password
|
||||
return !!object.password && object.password.gsub(/\s+/, "").length > 1 && object.password.to_s != "null"
|
||||
object.has_password?
|
||||
end
|
||||
|
||||
def password
|
||||
|
||||
Reference in New Issue
Block a user