diff --git a/lib/locomotive/liquid/drops/contents.rb b/lib/locomotive/liquid/drops/contents.rb index cfa58cf6..65a2e1c2 100644 --- a/lib/locomotive/liquid/drops/contents.rb +++ b/lib/locomotive/liquid/drops/contents.rb @@ -28,6 +28,18 @@ module Locomotive def each(&block) self.collection.each(&block) end + + def size + self.collection.size + end + + def empty? + self.collection.empty? + end + + def any? + self.collection.any? + end def api { 'create' => @context.registers[:controller].send('admin_api_contents_url', @content_type.slug) }