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-61.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-60.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-59.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-57.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-57.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-56.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-55.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-54.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-53.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-52.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-51.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-50.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-49.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-46.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-45.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-44.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-43.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-42.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-41.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-40.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb