Commit 7587a3b2fc0e0a3e39e969172f00391c2053e8b9
1 parent
747292e2
Exists in
master
and in
4 other branches
fixed check for snippets module enabled
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/snippets_controller.rb
@@ -87,6 +87,6 @@ class SnippetsController < ProjectResourceController | @@ -87,6 +87,6 @@ class SnippetsController < ProjectResourceController | ||
87 | end | 87 | end |
88 | 88 | ||
89 | def module_enabled | 89 | def module_enabled |
90 | - return render_404 unless @project.snippet_enabled | 90 | + return render_404 unless @project.snippets_enabled |
91 | end | 91 | end |
92 | end | 92 | end |