Sha256: efddbeaa2907864bb232f973b46d01d7d30f3d044672afd99af1c5fe704a231d

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true
require_dependency 'c/application_controller'

module C
  class FrontEnd::ProjectsController < MainApplicationController

    def index
      get_page C::Page, 'projects'
      @projects = C::Project.order(created_at: 'DESC')
    end

    def show
      get_page C::Project
      @project = @page
      redirect_to root_url unless @project.published || user_signed_in?
      force_clean_url @project
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/controllers/c/front_end/projects_controller.rb
cd2_catton_cms-1.1.34 app/controllers/c/front_end/projects_controller.rb
cd2_catton_cms-1.1.33 app/controllers/c/front_end/projects_controller.rb
cd2_catton_cms-1.1.32 app/controllers/c/front_end/projects_controller.rb