lib/reviewed/attachable.rb in reviewed-0.7.1 vs lib/reviewed/attachable.rb in reviewed-0.8.0

- old
+ new

@@ -19,10 +19,10 @@ attributes['attachments'] ||= [] attributes['attachments'].map(&:tags).flatten.uniq.compact end def fetch_attachments opts={} - req = Request.new :resource => Attachment, :scope => self + req = client.attachments(scope: self) req.where opts end end end