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

Version Path
thredded-0.16.1 app/controllers/thredded/topic_previews_controller.rb
thredded-0.16.0 app/controllers/thredded/topic_previews_controller.rb
thredded-0.15.5 app/controllers/thredded/topic_previews_controller.rb
thredded-0.15.4 app/controllers/thredded/topic_previews_controller.rb
thredded-0.15.3 app/controllers/thredded/topic_previews_controller.rb
thredded-0.15.2 app/controllers/thredded/topic_previews_controller.rb
thredded-0.15.1 app/controllers/thredded/topic_previews_controller.rb
threddedDANIEL-0.14.5 app/controllers/thredded/topic_previews_controller.rb
thredded-0.14.4 app/controllers/thredded/topic_previews_controller.rb
thredded-0.14.3 app/controllers/thredded/topic_previews_controller.rb
thredded-0.14.2 app/controllers/thredded/topic_previews_controller.rb
thredded-0.14.1 app/controllers/thredded/topic_previews_controller.rb
thredded-0.14.0 app/controllers/thredded/topic_previews_controller.rb
thredded-0.13.8 app/controllers/thredded/topic_previews_controller.rb
thredded-0.13.7 app/controllers/thredded/topic_previews_controller.rb
thredded-0.13.6 app/controllers/thredded/topic_previews_controller.rb
thredded-0.13.5 app/controllers/thredded/topic_previews_controller.rb
thredded-0.13.4 app/controllers/thredded/topic_previews_controller.rb
thredded-0.13.3 app/controllers/thredded/topic_previews_controller.rb
thredded-0.13.2 app/controllers/thredded/topic_previews_controller.rb