Sha256: d733d59e330eb00884c4f278c01c0cc65ce47b25dce2288e36b5c153df37836f
Contents?: true
Size: 408 Bytes
Versions: 21
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true module Thredded class PrivateTopicPreviewsController < Thredded::ApplicationController include Thredded::NewPrivateTopicParams include Thredded::RenderPreview def preview form = Thredded::PrivateTopicForm.new(new_private_topic_params) @private_post = form.post @private_post.postable = form.private_topic render_preview end end end
Version data entries
21 entries across 21 versions & 2 rubygems