[issue #64] Removed unnecessary files.
This commit is contained in:
parent
706c052a5e
commit
f7c58f6a77
|
@ -1,4 +1,4 @@
|
|||
require 'lib/gollum'
|
||||
#require 'lib/gollum'
|
||||
require 'cgi'
|
||||
|
||||
class WikiController < ApplicationController
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue