Sha256: 6fcdaa1780fb57944d220b93c2b6366c654f76fb2537827a86956fab9aa71c13

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

# 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/sunrise/sunrise_question.rb