Sha256: 400af76ee8adb60965550e3b7ca77bfc2b2f79f7d50cc001493570918bb9e89f
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
module ElocalApiSupport module Actions module Index def index render json: { current_page: current_page, per_page: (params[:page].present? || params[:per_page].present?) ? per_page : filtered_objects.total_count, total_entries: filtered_objects.total_count, total_pages: (params[:page].present? || params[:per_page].present?) ? filtered_objects.total_pages : 1, records: filtered_objects_for_json } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elocal_api_support-0.1.2 | lib/elocal_api_support/actions/index.rb |