if Rails.env.production? Sentry.init do |config| <% if get(:heroku) %> config.environment = Heroku.stage <% end %> end end