Sha256: 56076fe593c3433afd9ef8a627bea8d068fba18a6a75363686599d4e395f2523
Contents?: true
Size: 455 Bytes
Versions: 3
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true Dry::System.register_provider_source(:application_contract, group: :rails) do prepare do require "dry/rails/features/application_contract" @railtie = target_container[:railtie] end start do @railtie.set_or_reload( :ApplicationContract, Class.new(Dry::Rails::Features::ApplicationContract).finalize!(@railtie) ) end stop do @railtie.remove_constant(:ApplicationContract) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dry-rails-0.7.0 | lib/dry/rails/boot/application_contract.rb |
dry-rails-0.6.0 | lib/dry/rails/boot/application_contract.rb |
dry-rails-0.5.0 | lib/dry/rails/boot/application_contract.rb |