Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-25 11:20:14 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-25 11:20:14 +0400
commitd4543eb5a71bd3aa5bfc24f9fadf07e4fe3d461d (patch)
tree90feed929a77419df84d69869de2a73a5be17bd9 /app/controllers/projects/snippets_controller.rb
parent611ac727450b4fb9214e428cd91f7913d48ed7d8 (diff)
Tests fixed
Diffstat (limited to 'app/controllers/projects/snippets_controller.rb')
-rw-r--r--app/controllers/projects/snippets_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/snippets_controller.rb b/app/controllers/projects/snippets_controller.rb
index ebff5039ffa..cd14c08c779 100644
--- a/app/controllers/projects/snippets_controller.rb
+++ b/app/controllers/projects/snippets_controller.rb
@@ -23,11 +23,11 @@ class Projects::SnippetsController < Projects::ApplicationController
end
def new
- @snippet = @project.snippets.new
+ @snippet = @project.snippets.build
end
def create
- @snippet = @project.snippets.new(params[:project_snippet])
+ @snippet = @project.snippets.build(params[:project_snippet])
@snippet.author = current_user
@snippet.save