Sha256: 5ef3330c86a0f6ffceaaed113fb94d825a3abcdfcf1799ca1a19d368e66b7b85

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 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

7 entries across 7 versions & 1 rubygems

Version Path
thredded-0.12.1 app/controllers/thredded/topic_previews_controller.rb
thredded-0.12.0 app/controllers/thredded/topic_previews_controller.rb
thredded-0.11.1 app/controllers/thredded/topic_previews_controller.rb
thredded-0.11.0 app/controllers/thredded/topic_previews_controller.rb
thredded-0.10.1 app/controllers/thredded/topic_previews_controller.rb
thredded-0.10.0 app/controllers/thredded/topic_previews_controller.rb
thredded-0.9.4 app/controllers/thredded/topic_previews_controller.rb