Sha256: 26189445197a38ea5ca01fe6c330a36b3156bbdc3e67e4fa5b6c9c48e3e7dba3
Contents?: true
Size: 489 Bytes
Versions: 8
Compression:
Stored size: 489 Bytes
Contents
require_dependency "phcmemberspro/application_controller" module Phcmemberspro class Api::V1::ListingsController < ApplicationController # Only Responds to API skip_before_action :phcmemberspro_get_member_profile_info respond_to :json # Directory Listing API def index category = Directory::Category.find(params[:category_id]) @member_listings = category.listings.where(org_id: current_user.org_id).order('listing_company_name ASC') end end end
Version data entries
8 entries across 8 versions & 1 rubygems