Sha256: cc03b3b9c6e9cf2f5bc0b49043cad564c2166f223d4561910c699c3ad200dfe5

Contents?: true

Size: 683 Bytes

Versions: 29

Compression:

Stored size: 683 Bytes

Contents

# 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?(Merb::AbstractController)
  require 'will_paginate/view_helpers/merb'

  Merb::BootLoader.before_app_loads do
    adapters = { :datamapper => 'data_mapper', :activerecord => 'active_record', :sequel => 'sequel' }
    # auto-load the right ORM adapter
    if adapter = adapters[Merb.orm]
      require "will_paginate/#{adapter}"
    end
  end
end

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

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
hobo_will_paginate-2.1.1 lib/will_paginate.rb
hobo_will_paginate-2.1.0 lib/will_paginate.rb
will_paginate-3.0.5 lib/will_paginate.rb
hobo-will_paginate-3.0.4.hobo lib/will_paginate.rb
will_paginate-3.0.4 lib/will_paginate.rb
will_paginate-3.0.3 lib/will_paginate.rb
will_paginate-3.0.2 lib/will_paginate.rb
will_paginate-3.0.1 lib/will_paginate.rb
will_paginate-3.0.0 lib/will_paginate.rb