lib/rails_paginate.rb in rails_paginate-0.0.1 vs lib/rails_paginate.rb in rails_paginate-0.0.2
- old
+ new
@@ -15,11 +15,10 @@
# method: :jumping or :sliding
mattr_accessor :method
@@method = :sliding
-
class << self
# to configure rails_paginate
# for a sample look the readme.rdoc file
def setup
yield self
@@ -41,9 +40,10 @@
@renderer = renderer.new
end
end
end
+ # init rails paginate
def init
require 'rails_paginate/core_ext/active_record'
require 'rails_paginate/core_ext/array'
# set default method
\ No newline at end of file