Skip to content

Commit

Permalink
Fix error where we attempt to use @id rather than id
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mcdonald committed Feb 14, 2013
1 parent 1374854 commit 44a4105
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/serel/question.rb
Expand Up @@ -52,23 +52,23 @@ def self.no_answers
end

def answers
type(:answer).url("questions/#{@id}/answers")
type(:answer).url("questions/#{id}/answers")
end

def comments
type(:comment).url("questions/#{@id}/comments")
type(:comment).url("questions/#{id}/comments")
end

def linked
type(:question).url("questions/#{@id}/linked")
type(:question).url("questions/#{id}/linked")
end

def related
type(:question).url("questions/#{@id}/related")
type(:question).url("questions/#{id}/related")
end

def timeline
type(:timeline).url("questions/#{@id}/timeline")
type(:timeline).url("questions/#{id}/timeline")
end
end
end

0 comments on commit 44a4105

Please sign in to comment.