lib/ahub/question.rb in ahub-0.5.1 vs lib/ahub/question.rb in ahub-0.5.2
- old
+ new
@@ -39,10 +39,10 @@
def user
@author
end
def html_url
- "#{self.class.base_url}/#{id}/#{slug}.html" if id
+ "#{Ahub::DOMAIN}/questions/#{id}/#{slug}.html" if id
end
def json_url
"#{self.class.base_url}/#{id}.json" if id
end