Fix gsub+downcase usage with parameterize

This commit is contained in:
Bertocq
2017-12-16 17:52:13 +01:00
parent c2b5083d4f
commit cf8cfe363b

View File

@@ -337,7 +337,7 @@ module CommonActions
end end
def comment_body(resource) def comment_body(resource)
"comment-body-#{resource.class.name.gsub("::", "_").downcase.to_sym}_#{resource.id}" "comment-body-#{resource.class.name.parameterize('_').to_sym}_#{resource.id}"
end end
def path_for(resource) def path_for(resource)