We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38244ac commit e8afa32Copy full SHA for e8afa32
app/controllers/concerns/has_ownership.rb
@@ -47,7 +47,7 @@ def redirect_if_not_owned(object_to_check, redirect_path)
47
def redirect_path
48
model = content_type_from_controller(self.class)
49
# TODO: proper pluralizing here
50
- "#{model.to_s.downcase}s_path"
+ "#{model.to_s.underscore}s_path"
51
end
52
53
def owned_by_current_user?(object)
0 commit comments