-
Notifications
You must be signed in to change notification settings - Fork 0
Add a .empty? helper method #5
Copy link
Copy link
Open
Description
This would return true if all keys in the result (other than links and meta) are empty. It will simplify commands where we do this:
def execute
result = Serializers::Account.resource(inputs)
if result[:accounts].empty?
status :not_found
else
result
end
endAs this will be possible:
def execute
result = Serializers::Account.resource(inputs)
if result.empty?
status :not_found
else
result
end
endReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels