Skip to content

Commit

Permalink
Dealt with unanswered questions
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahzs committed Dec 14, 2017
1 parent ad4eb1b commit 78d3dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/se/api/types/question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Question < Post

def initialize(item_json)
super(item_json)
@answers = item_json["answers"].map { |i| Answer.new(i) }
@answers = Array(item_json["answers"]).map { |i| Answer.new(i) }
end
end
end
Expand Down

0 comments on commit 78d3dc3

Please sign in to comment.