[issue #64] Removed unnecessary files.

This commit is contained in:
George Vinogradov 2012-01-30 13:12:18 +04:00
parent 706c052a5e
commit f7c58f6a77
3 changed files with 1 additions and 28 deletions

View File

@ -1,4 +1,4 @@
require 'lib/gollum' #require 'lib/gollum'
require 'cgi' require 'cgi'
class WikiController < ApplicationController class WikiController < ApplicationController

View File

@ -1,27 +0,0 @@
module Gollum
class PaginateableArray < Array
require 'will_paginate/collection'
def paginate(options = {})
page = options[:page] || 1
per_page = options[:per_page] || WillPaginate.per_page
total = options[:total_entries] || self.length
WillPaginate::Collection.create(page, per_page, total) do |pager|
pager.replace self[pager.offset, pager.per_page].to_a
end
end
end
class PageImproved < Page
def versions(options = {})
options.delete :page
options.delete :per_page
puts super(options)
res = PaginateableArray.new(super(options))
puts res.inspect
end
end
end