Sha256: 3a480f71183e501ab369e69c3f2862c7c55f5fb36ca3872b34968741e25308e7
Contents?: true
Size: 916 Bytes
Versions: 1
Compression:
Stored size: 916 Bytes
Contents
# frozen_string_literal: true module FactoryBot module Instrumentation # The configuration for the instrumentation API. class Configuration include ActiveSupport::Configurable # The instrumentation configuration file path we should use, # defaults to config/instrumentation.yml config_accessor(:config_file) do 'config/instrumentation.yml' end # You can set a fixed application name here, # defaults to your Rails application name in a titlized version config_accessor(:application_name) { nil } # By default we use the Rails default JSON rendering mechanism, but # you can configure your own logic here config_accessor(:render_entity) do proc do |controller, entity| controller.render plain: entity.to_json, content_type: 'application/json' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factory_bot_instrumentation-0.4.0 | lib/factory_bot/instrumentation/configuration.rb |