Sha256: 302b8bf28e9a4b3919c63b049e38ea7c448a844a806f90689c7689aa153cae8f
Contents?: true
Size: 517 Bytes
Versions: 7
Compression:
Stored size: 517 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
7 entries across 7 versions & 1 rubygems