You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to define the exception_recipients dynamically, based on the Rails environment. For example:
recipients = Rails.env == 'production'
[email protected]
else
User.current.email
end
In this way I won't spam the rest of my team while I am developing new features. but in production we can all respond to issues. However, from the docs:
I just want to send an email to all Users.where(admin: true).
Tried using a lambda/proc as :exception_recipients - but it seems to get not evaluated once it is needed.
Would be really great to provide a lazy-loading with procs for recipients.
I want to be able to define the exception_recipients dynamically, based on the Rails environment. For example:
In this way I won't spam the rest of my team while I am developing new features. but in production we can all respond to issues. However, from the docs:
In
config/environments/production.rb
where i don't have anActiveRecord::Base
connection yet.Is this possible? Or can there be a call to
default_options=(opts)
?Thanks
The text was updated successfully, but these errors were encountered: