Sha256: 6f11a89a75828a508863baa90094a5c5c5ea492643b5152b40d2a5cef2609ac5

Contents?: true

Size: 359 Bytes

Versions: 24

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Thredded
  # @api private
  module NewTopicParams
    protected

    def new_topic_params
      params
        .fetch(:topic, {})
        .permit(:title, :locked, :sticky, :content, category_ids: [])
        .merge(
          messageboard: messageboard,
          user: thredded_current_user,
        )
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
thredded-1.1.0 app/controllers/concerns/thredded/new_topic_params.rb
thredded-1.0.1 app/controllers/concerns/thredded/new_topic_params.rb
thredded-1.0.0 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.16 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.15 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.14 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.13 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.12 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.11 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.10 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.9 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.8 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.7 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.6 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.5 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.4 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.3 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.1 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.16.0 app/controllers/concerns/thredded/new_topic_params.rb
thredded-0.15.5 app/controllers/concerns/thredded/new_topic_params.rb