lib/ruby-box/discussion.rb in ruby-box-1.0.0 vs lib/ruby-box/discussion.rb in ruby-box-1.0.1
- old
+ new
@@ -1,12 +1,7 @@
module RubyBox
class Discussion < Item
-
- def comments
- url = "#{RubyBox::API_URL}/#{resource_name}/#{id}/comments"
- resp = @session.get( url )
- resp['entries'].map {|i| Comment.new(@session, i)}
- end
+ has_many :comments
private
def resource_name
'discussions'
\ No newline at end of file