Sha256: 4ba788607a8c902cc9089b21cac4cda95316b8fe6c250a2c69cadd1b107915ac
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
module Spree module Admin class QuestionCategoriesController < ResourceController before_filter :question_category, only: [:new, :edit] private def question_category @question_category ||= @object end def question_category_params params.require(:question_category).permit(:questions_attributes, :question, :answer, question: [:question_category_id, :question, :answer]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-faq-2.2.0 | app/controllers/spree/admin/question_categories_controller.rb |
spree-faq-2.1.0 | app/controllers/spree/admin/question_categories_controller.rb |