Sha256: 669d1515e3004147fea3521f2b5acdc7311d2b437cc6abcb397933ec10e59689

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

Dry::System.register_provider_source(:safe_params, group: :rails) do
  prepare 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.7.0 lib/dry/rails/boot/safe_params.rb
dry-rails-0.6.0 lib/dry/rails/boot/safe_params.rb
dry-rails-0.5.0 lib/dry/rails/boot/safe_params.rb