Sha256: 71b90f37e3739dcde5321e72c3a7f1abc7722ef1a832ad7d978716580a426fe4
Contents?: true
Size: 516 Bytes
Versions: 15
Compression:
Stored size: 516 Bytes
Contents
require_dependency "phcmembers/application_controller" module Phcmembers class Api::DirectoriesController < ApplicationController # Directory Category API def index @directory_categories = Directory::Category.where(membership_id: membership_info.id).order('catname ASC') end # Directory Listing API def show category = Directory::Category.find(params[:category_id]) @directory_listings = category.catlists.where(membership_id: membership_info.id) end end end
Version data entries
15 entries across 15 versions & 1 rubygems