Sha256: d64c276160d5a1de31d34d01d4aef314d9ab4849e95f7cf2a87aae16855c41be

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

Dry::System.register_provider_source(:controller_helpers, group: :rails) do
  prepare do
    require "dry/rails/features/controller_helpers"
  end

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-rails-0.7.0 lib/dry/rails/boot/controller_helpers.rb
dry-rails-0.6.0 lib/dry/rails/boot/controller_helpers.rb
dry-rails-0.5.0 lib/dry/rails/boot/controller_helpers.rb