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-39.2.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-39.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-39.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-38.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-37.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-36.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-35.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-34.0.1 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-33.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-33.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-32.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-31.2.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-31.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-31.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-30.0.2 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-30.0.1 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-30.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-29.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-28.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-27.0.1 app/controllers/phcmembers/directory/categorylistings_controller.rb