Sha256: f52d3770622025ce8d2c93ee8a31f779ac6bec8e6084023119eedabec954de3c

Contents?: true

Size: 374 Bytes

Versions: 4

Compression:

Stored size: 374 Bytes

Contents

module Yawl
  module Config
    mattr_accessor :pagination_per_page

    DEFAULT_PAGINATION_PER_PAGE = 20
  end

  module Pagination
    module ClassMethods
      def pagination_dataset
        dataset.extension(:pagination)
      end
    end

    def self.included(klass)
      klass.extend(ClassMethods)
    end
  end
end

::Yawl::Process.send(:include, Yawl::Pagination)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yawl_rails-0.3.0 lib/yawl/pagination.rb
yawl_rails-0.2.2 lib/yawl/pagination.rb
yawl_rails-0.2.1 lib/yawl/pagination.rb
yawl_rails-0.2.0 lib/yawl/pagination.rb