[#1563] Remove useless self keywords

This commit is contained in:
Frederic Merizen 2018-03-16 18:30:23 +01:00
parent c94cc53985
commit 66aca60957

View file

@ -13,8 +13,8 @@ module MailTemplateConcern
module ClassMethods
def default_for_procedure(procedure)
body = ActionController::Base.new.render_to_string(template: self.const_get(:TEMPLATE_NAME))
self.new(subject: self.const_get(:DEFAULT_SUBJECT), body: body, procedure: procedure)
body = ActionController::Base.new.render_to_string(template: const_get(:TEMPLATE_NAME))
new(subject: const_get(:DEFAULT_SUBJECT), body: body, procedure: procedure)
end
end