Sha256: b04a1bdb9de0c876bf58a608eba08e40f19706d3b2ac1ec3d54e3b876c468bb7

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

Dry::System.register_component(:safe_params, provider: :rails) do
  init do
    require "dry/rails/features/safe_params"
  end

  start do
    ApplicationController.include(Dry::Rails::Features::SafeParams)

    if defined?(ActionController::API)
      ActionController::API.include(Dry::Rails::Features::SafeParams)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-rails-0.4.0 lib/dry/rails/boot/safe_params.rb
dry-rails-0.3.0 lib/dry/rails/boot/safe_params.rb
dry-rails-0.2.1 lib/dry/rails/boot/safe_params.rb