Skip to content

Commit ec05fad

Browse files
committed
Add ability to test postmark email in development
1 parent ca0f154 commit ec05fad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config/environments/development.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,10 @@
8989
config.solid_cable.connects_to = {database: {writing: :cable, reading: :cable}}
9090

9191
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "debug")
92+
93+
config.settings.postmark_api_token = if ENV["ENABLE_POSTMARK_IN_DEV"] == "true"
94+
Rails.application.credentials.postmark&.api_token || "POSTMARK_API_TEST"
95+
else
96+
"POSTMARK_API_TEST"
97+
end
9298
end

0 commit comments

Comments
 (0)