Class: BlockGiven::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/block_given/railtie.rb

Overview

Loaded automatically inside a Rails app (Rails 7.0+). Once the app has booted, BlockGiven logs through Rails.logger unless an initializer configured another logger.

# config/initializers/block_given.rb
BlockGiven.configure do |c|
c.connector = BlockGiven::Connectors::Alchemy.new(api_key: Rails.application.credentials.alchemy_api_key)
c.chain = Rails.env.production? ? :base : :base_sepolia
end