Sha256: b6e048275a339d06fa50f9751b678485c51695276a14b5c2338bd2fd617be1f2
Contents?: true
Size: 763 Bytes
Versions: 5
Compression:
Stored size: 763 Bytes
Contents
module Walruz module More # This module can be included into association like objects module Pagination base_path = File.dirname(__FILE__) autoload :Base, base_path + '/pagination/base' autoload :WillPaginateCollection, base_path + '/pagination/will_paginate_collection' autoload :ViewHelper, base_path + '/pagination/view_helper' def self.included(base) if base.instance_methods.include?('paginate') # We are talking about an already paginated element, we use WillPaginate extension instead base.send(:include, Base) else raise RuntimeError.new("Walruz::More::Paginate needs WillPaginate in order to work") end end end # Pagination end end
Version data entries
5 entries across 5 versions & 1 rubygems