# frozen_string_literal: true class SunriseQuestion < Sunrise::AbstractModel self.resource_name = 'Question' available_index_views [:thumbs] index :thumbs do field :category_title field :sort_order end form do field :title, translate: true field :content, as: :ckeditor, translate: true, required: false, input_html: { height: 400, width: 900 } field :category_id, collection: -> { QuestionCategory.all }, include_blank: false field :sort_order end end