Sha256: 25088f9225cdbe79d821e7168a65efd639b82ab6c2ee7f6da243841466abcf73

Contents?: true

Size: 904 Bytes

Versions: 9

Compression:

Stored size: 904 Bytes

Contents

require_dependency "phcmembers/application_controller"

module Phcmembers
  class Directory::CategorylistingsController < ApplicationController

    # Security & Action Filters
    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

9 entries across 9 versions & 1 rubygems

Version Path
phcmembers-17.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-17.0.1 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-16.2.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-16.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-16.0.2 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-16.0.1 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-16.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-15.1.0 app/controllers/phcmembers/directory/categorylistings_controller.rb
phcmembers-15.0.0 app/controllers/phcmembers/directory/categorylistings_controller.rb