Sha256: 379da9bf2991a78e33a33e7ebb436262685ed313c446b596ddceb4780de9cdad

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

class WelcomeController < ApplicationController
  before_action :find_structure

  caches_page :index, :robots

  def robots
    render text: Settings.robots_txt || 'Disallow: *'
  end

  def index
    @composite = structure_by(slug: 'main-page-composite')
    # @lifetimes = TranslationCms::Api::Lifetime.all(_satellite_id: Settings.satellite_id).sort { |x, y| x.value <=> y.value }
    # @tickets = TranslationCms::Api::Ticket.all(_satellite_id: Settings.satellite_id)

    respond_with @structure
  end

  private

  def find_structure
    load_structure(StructureType.main)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/controllers/welcome_controller.rb