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

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