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