aboutsummaryrefslogtreecommitdiff
blob: d58f322f992d0b9b9caed1e485251c308027aaea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class QuestionsController < ApplicationController

  hobo_model_controller

  auto_actions :all, :except => :index
  index_action :answered_questions, :unanswered_questions, :suggest_questions, :approve_questions

  def answered_questions
    hobo_index current_user.answered_questions
  end

  def suggest_questions
    hobo_index Question.suggested_questions(current_user.id)
  end

  def approve_questions
    hobo_index Question.questions_to_approve
  end
end