Commit e0f6c339 authored by rpereira2's avatar rpereira2

Remove after_initialize callback

parent caccda85
......@@ -6,15 +6,8 @@ module IncidentManagement
validate :issue_template_exists, if: :create_issue?
after_initialize :set_defaults
private
def set_defaults
self.send_email = true
self.create_issue = false
end
def issue_template_exists
return unless issue_template_key.present?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment