2659: Toggle features according to editable? and creatable? instead of current_user...
[arvados.git] / apps / workbench / app / mailers / issue_reporter.rb
1 class IssueReporter < ActionMailer::Base
2   default from: Rails.configuration.issue_reporter_email_from
3   default to: Rails.configuration.issue_reporter_email_to
4
5   def send_report(user, params)
6     @user = user
7     @params = params
8     subject = 'Issue reported'
9     subject += " by #{@user.email}" if @user
10     mail(subject: subject)
11   end
12 end