Send email control, and db gemfile
This commit is contained in:
parent
a329167f05
commit
e01d623e28
16
db/Gemfile
16
db/Gemfile
|
|
@ -3,4 +3,20 @@ source 'http://rubygems.org'
|
|||
# Assumes you have already cloned pg_migrate_ruby in your workspace
|
||||
# $ cd [workspace]
|
||||
# $ git clone https://github.com/sethcall/pg_migrate_ruby
|
||||
gem 'did_you_mean', '1.4.0'
|
||||
gem 'etc', '1.1.0'
|
||||
gem 'fileutils', '1.4.1'
|
||||
gem 'delegate', '0.1.0'
|
||||
gem 'timeout', '0.1.0'
|
||||
gem 'uri', '0.10.0'
|
||||
gem 'zlib', '1.1.0'
|
||||
gem 'logging', '1.7.2'
|
||||
gem 'stringio', '0.1.0'
|
||||
gem 'date', '3.0.0'
|
||||
gem 'ipaddr', '1.2.2'
|
||||
gem 'openssl', '2.1.2'
|
||||
gem 'cgi', '0.1.0'
|
||||
gem 'strscan', '1.0.3'
|
||||
gem 'forwardable', '1.3.1'
|
||||
|
||||
gem 'pg_migrate', '0.1.14', :source => 'http://rubygems.org/'
|
||||
|
|
|
|||
|
|
@ -662,6 +662,11 @@ class ApiUsersController < ApiController
|
|||
@dump.description = params[:description]
|
||||
@dump.fsize = params[:fsize]
|
||||
@dump.crash_context = params[:crash_context]
|
||||
send_email = params[:send_email]
|
||||
if send_email.nil?
|
||||
send_email = true
|
||||
end
|
||||
|
||||
crash_date = params[:crash_date]
|
||||
|
||||
# make sure client is passing version information - if not its too old
|
||||
|
|
@ -716,7 +721,7 @@ class ApiUsersController < ApiController
|
|||
|
||||
|
||||
logger.debug("sending crash email with subject#{subject}")
|
||||
AdminMailer.crash_alert(subject: subject, body: body).deliver_now
|
||||
AdminMailer.crash_alert(subject: subject, body: body).deliver_now if send_email
|
||||
|
||||
redirect_to write_url, status: 307
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue