Sha256: 76b75c541a3b983df4694824aade8bcf293fb3e13abe37127c8734c01499418e
Contents?: true
Size: 355 Bytes
Versions: 21
Compression:
Stored size: 355 Bytes
Contents
# frozen_string_literal: true module Thredded class TopicPreviewsController < Thredded::ApplicationController include Thredded::NewTopicParams include Thredded::RenderPreview def preview form = Thredded::TopicForm.new(new_topic_params) @post = form.post @post.postable = form.topic render_preview end end end
Version data entries
21 entries across 21 versions & 2 rubygems