Sha256: 631b05f3f4626c66b2b014e3b8d9028f297ccf7a3be89adb997d013b46c8ee25
Contents?: true
Size: 452 Bytes
Versions: 6
Compression:
Stored size: 452 Bytes
Contents
module Tally class KeysController < Tally::ApplicationController def index records = search.keys.page(params[:page]).per(params[:per_page] || 24).without_count render json: { keys: records.map(&:key), meta: { next_page: records.next_page, current_page: records.current_page, previous_page: records.prev_page, per_page: records.limit_value } } end end end
Version data entries
6 entries across 6 versions & 1 rubygems