Sha256: 05c9b109e538ea2293e5581b3002cb985859f0ca0e9d64c0c18cd98879376f22

Contents?: true

Size: 942 Bytes

Versions: 53

Compression:

Stored size: 942 Bytes

Contents

require_dependency "phcmembers/application_controller"

module Phcmembers
  class Directory::CategorylistingsController < ApplicationController

    # Security & Action Filters
    before_action :authenticate_user!
    before_action :set_paper_trail_whodunnit
    before_action :set_directory_category_listing, only: [:show]

    # INDEX - Directory Category/Listings
    def index
      @directory_categorylistings = Directory::Categorylisting.all
    end

    # DETAILED - Directory Category/Listings
    def show
      @directory_categorylisting = Directory::Categorylisting.find(params[:id])
      @directory_categorylistings_versions = Phcmembers::CategoryListingVersions.where(item_id: @directory_category, item_type: 'Phcmembers::Directory::Category')
    end

    private

    # Common Callbacks
    def set_directory_category_listing
      @directory_categorylisting = Directory::Categorylisting.find(params[:id])
    end

  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
phcmembers-27.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-26.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-25.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-24.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-23.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-22.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-21.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-21.0.1 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-21.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-19.2.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-19.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-19.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-18.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb