lib/access/response.rb in access-2.0.47 vs lib/access/response.rb in access-2.0.48
- old
+ new
@@ -137,13 +137,13 @@
end
end
class UserResponse < Response
def process_data
- if @members
+ if @members && @members.any?
@members = Access::Member.process_batch(@members)
@users = @members.map {|x| x if x.user }.compact
- elsif @users
+ elsif @users && @users.any?
@users = Access::User.process_batch(@users)
end
end
end