Sha256: 469c4b776dbd49dc57990bfe7de991c6f4dd761fb82e0a125e86b029af25b8cf
Contents?: true
Size: 452 Bytes
Versions: 6
Compression:
Stored size: 452 Bytes
Contents
module Tally class DaysController < Tally::ApplicationController def index records = search.days.page(params[:page]).per(params[:per_page] || 24).without_count render json: { days: records.map(&:day), 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