Sha256: 518ae8f63bcc23a71801a7ee851db89747bf25ee4d0ee048c87728ace6eaa8a7

Contents?: true

Size: 858 Bytes

Versions: 1

Compression:

Stored size: 858 Bytes

Contents

require 'will_paginate'
require 'will_paginate_couchrest/class_methods'
require 'will_paginate_couchrest/proxy_methods'

# Take the liberty of adding ourself to the couchrest library

if defined?(CouchRest::ExtendedDocument)
  module CouchRest
    class ExtendedDocument < Document
      include CouchRest::WillPaginate
    end
  end

  module CouchRest
    module Mixins
      module ClassProxy
        class Proxy
          include CouchRest::WillPaginate::ProxyMethods
        end
      end
    end
  end
end

if defined?(CouchRest::Model::Base)
  module CouchRest
    module Model
      class Base < Document
        include CouchRest::WillPaginate
      end
    end
  end

  module CouchRest
    module Model
      module ClassProxy
        class Proxy
          include CouchRest::WillPaginate::ProxyMethods
        end
      end
    end
  end
end



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
will_paginate_couchrest-0.3.1 lib/will_paginate_couchrest.rb