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