lib/reviewed/attachable.rb in reviewed-0.4.0 vs lib/reviewed/attachable.rb in reviewed-0.4.1

- old
+ new

@@ -3,11 +3,11 @@ def attachments tag, opts={} (@attachments ||= {})[tag] ||= fetch_attachments tag, opts end - def gallery num=8, page=1 - fetch_attachments 'gallery', :per_page => num, :page => page, :order => 'priority' + def gallery tags=nil, num=8, page=1 + fetch_attachments tags, :gallery => true, :per_page => num, :page => page, :order => 'priority' end private def fetch_attachments tag, opts={}