Use separator key when parameterizing arguments

This commit is contained in:
Angel Perez
2018-08-07 17:24:03 -04:00
committed by Julian Herrero
parent cb1ed017f9
commit 7ddbf5ff35

View File

@@ -10,7 +10,7 @@ module Notifications
end
def comment_body(resource)
"comment-body-#{resource.class.name.parameterize("_").to_sym}_#{resource.id}"
"comment-body-#{resource.class.name.parameterize(separator: "_").to_sym}_#{resource.id}"
end
def create_proposal_notification(proposal)