summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-18 23:44:57 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-18 23:44:57 +0200
commit7587a3b2fc0e0a3e39e969172f00391c2053e8b9 (patch)
treec10eb129a093681d8161f7c68a889e7ef3e2cdf8
parent747292e2d33ec77219be584fa55fc67c08f008b2 (diff)
downloadgitlab-ce-7587a3b2fc0e0a3e39e969172f00391c2053e8b9.tar.gz
fixed check for snippets module enabled
-rw-r--r--app/controllers/snippets_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/snippets_controller.rb b/app/controllers/snippets_controller.rb
index d356479330b..a2e22a670a3 100644
--- a/app/controllers/snippets_controller.rb
+++ b/app/controllers/snippets_controller.rb
@@ -87,6 +87,6 @@ class SnippetsController < ProjectResourceController
end
def module_enabled
- return render_404 unless @project.snippet_enabled
+ return render_404 unless @project.snippets_enabled
end
end