Skip to content

Commit

Permalink
Merge pull request #28 from andela-iamadi/fix-to-ask-question_route
Browse files Browse the repository at this point in the history
Add question_id to answer returned
  • Loading branch information
0sc committed Feb 12, 2016
2 parents 5348c83 + d45fe23 commit be71927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/answer_serializer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AnswerSerializer < ActiveModel::Serializer
attributes :id, :user, :content, :votes_count, :created_at, :updated_at, :comments_count
attributes :id, :user, :content, :question_id, :votes_count, :created_at, :updated_at, :comments_count

def user
{
Expand Down

0 comments on commit be71927

Please sign in to comment.