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