Sha256: c7c0c2b5ac2a252ef4c79086b73c00ff4d223497be421c081b03e06c7e94cc07

Contents?: true

Size: 257 Bytes

Versions: 29

Compression:

Stored size: 257 Bytes

Contents

require "active_support/concern"

module Renalware
  module Concerns::Pageable
    extend ActiveSupport::Concern

    included do
      def page
        params[:page]
      end

      def per_page
        params[:per_page] || 20
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.15 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.14 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.13 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.12 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.11 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.9 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.8 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.7 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.5 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.4 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.3 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.2 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.1 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.0 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.0.pre.rc13 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.0.pre.rc11 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.0.pre.rc10 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.0.pre.rc9 app/controllers/renalware/concerns/pageable.rb
renalware-core-2.0.0.pre.rc8 app/controllers/renalware/concerns/pageable.rb