Sha256: a346bdefc875bb45cc31d11875bb58554154c43ba7d1778f1457f41d2c641dd2

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require_dependency "phcscriptcdnpro/application_controller"

module Phcscriptcdnpro
  class Frontend::ListingsController < ApplicationController

    # Change Layout
    layout '/layouts/phcscriptcdnpro/frontend.html.erb'

    # Script Listing Index
    def index
      @script_listings_index = Script::Listing.all
      @script_listings_index = Script::Version.all
    end

    # Script Listing Post
    def show
      @script_listings_single = Script::Listing.friendly.find(params[:id])
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcscriptcdnpro-20.8.0 app/controllers/phcscriptcdnpro/frontend/listings_controller.rb