Skip to content
Snippets Groups Projects
Unverified Commit ae003d54 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix option to send e-mail notification about account action always being true (#11242)

parent ed544f31
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,13 @@ class Admin::AccountAction ...@@ -17,10 +17,13 @@ class Admin::AccountAction
:type, :type,
:text, :text,
:report_id, :report_id,
:warning_preset_id, :warning_preset_id
:send_email_notification
attr_reader :warning attr_reader :warning, :send_email_notification
def send_email_notification=(value)
@send_email_notification = ActiveModel::Type::Boolean.new.cast(value)
end
def save! def save!
ApplicationRecord.transaction do ApplicationRecord.transaction do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment