Fix gsub+downcase usage with parameterize
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user