File: will_paginate.rb

package info (click to toggle)
ruby-will-paginate 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: ruby: 2,734; sh: 33; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# You will paginate!
module WillPaginate
end

if defined?(Rails::Railtie)
  require 'will_paginate/railtie'
elsif defined?(Rails::Initializer)
  raise "will_paginate 3.0 is not compatible with Rails 2.3 or older"
end

if defined?(Sinatra) and Sinatra.respond_to? :register
  require 'will_paginate/view_helpers/sinatra'
end