fixed a bug with mock paginate tag

This commit is contained in:
Tobias Lütke
2009-06-14 17:42:28 -04:00
parent f65ce254c7
commit 31a5606d42
3 changed files with 4 additions and 6 deletions
+1
View File
@@ -41,4 +41,5 @@ end
if __FILE__ == $0
p Database.tables['collections']['frontpage'].keys
#p Database.tables['blog']['articles']
end
+2 -2
View File
@@ -37,7 +37,7 @@ class Paginate < Liquid::Block
context['paginate'] = pagination
collection_size = context[@collection_name].size
collection_size = context[@collection_name].size
raise ArgumentError.new("Cannot paginate array '#{@collection_name}'. Not found.") if collection_size.nil?
@@ -88,6 +88,6 @@ class Paginate < Liquid::Block
end
def current_url
"/collections/#{frontpage}"
"/collections/frontpage"
end
end