Sha256: 7058b7b77962bb92a1d2f3c9cf3ade9fcef211a0ea21d81734d8b70811618544
Contents?: true
Size: 350 Bytes
Versions: 36
Compression:
Stored size: 350 Bytes
Contents
require_dependency "ishapi/application_controller" module Ishapi class LeadsController < ApplicationController before_action :check_jwt def index authorize! :leads_index, ::Ishapi out = Lead.all.page( params[:leads_page] ).per( @current_profile.per_page ) render json: { items: out, } end end end
Version data entries
36 entries across 36 versions & 1 rubygems