4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/generators/telebugs_generator.rb', line 4
def create_initializer_file
create_file "config/initializers/telebugs.rb", " # frozen_string_literal: true\n\n # Telebugs error monitoring.\n #\n # Rails integration guide:\n # https://telebugs.com/docs/integrations/rails\n #\n # Telebugs library guide:\n # https://telebugs.com/docs/integrations/ruby\n\n Telebugs.configure do |config|\n config.api_key = ENV[\"TELEBUGS_API_KEY\"] || Rails.application.credentials.telebugs_api_key\n end\n RUBY\nend\n"
|