summaryrefslogtreecommitdiff
path: root/app/controllers/snippets_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-14 08:14:05 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-14 08:14:05 +0300
commitb01f8b63c2c13f8d6b9111771fb4f1422214d91c (patch)
tree47c03ab168a7d34808493c366312194859459d46 /app/controllers/snippets_controller.rb
parent44209861e8a3ed4e5d0e0e59823d4bf61c338f1f (diff)
downloadgitlab-ce-b01f8b63c2c13f8d6b9111771fb4f1422214d91c.tar.gz
added NamespacedProject role. Extended project info displayed for admin. Fixed project limit
Diffstat (limited to 'app/controllers/snippets_controller.rb')
-rw-r--r--app/controllers/snippets_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/snippets_controller.rb b/app/controllers/snippets_controller.rb
index 7324a4594eb..d037ad11ef1 100644
--- a/app/controllers/snippets_controller.rb
+++ b/app/controllers/snippets_controller.rb
@@ -16,7 +16,7 @@ class SnippetsController < ProjectResourceController
respond_to :html
def index
- @snippets = @project.snippets
+ @snippets = @project.snippets.fresh
end
def new
@@ -60,7 +60,7 @@ class SnippetsController < ProjectResourceController
redirect_to project_snippets_path(@project)
end
- def raw
+ def raw
send_data(
@snippet.content,
type: "text/plain",