Sha256: a50186e0c17a5fd29b345d99e43664201fa51aba422c0cd01e8f554014748fe9

Contents?: true

Size: 239 Bytes

Versions: 9

Compression:

Stored size: 239 Bytes

Contents

module EnjuQuestion
  module Controller
    extend ActiveSupport::Concern

    def get_question
      @question = Question.find(params[:question_id]) if params[:question_id]
      authorize @question, :show? if @question
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enju_question-0.3.2 app/controllers/concerns/enju_question/controller.rb
enju_question-0.3.1 app/controllers/concerns/enju_question/controller.rb
enju_question-0.3.0 app/controllers/concerns/enju_question/controller.rb
enju_question-0.3.0.beta.1 app/controllers/concerns/enju_question/controller.rb
enju_question-0.2.0 app/controllers/concerns/enju_question/controller.rb
enju_question-0.2.0.beta.4 app/controllers/concerns/enju_question/controller.rb
enju_question-0.2.0.beta.3 app/controllers/concerns/enju_question/controller.rb
enju_question-0.2.0.beta.2 app/controllers/concerns/enju_question/controller.rb
enju_question-0.2.0.beta.1 app/controllers/concerns/enju_question/controller.rb