Sha256: 03ea8f2268fa8696463ea6c712286b232257a14856f4d37838054b3f70fc8c5d
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
# frozen_string_literal: true class QuestionsController < ApplicationController before_action :find_structure caches_page :index def index @categories = QuestionCategory.includes(:questions).all # @questions = Question.all respond_with @categories end private def find_structure load_structure(StructureType.questions) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/controllers/questions_controller.rb |