[refs #194] refactoring

This commit is contained in:
Alexander Machehin 2012-03-03 00:21:46 +06:00
parent c7b412c0e0
commit 319fcdad86
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ class IssuesController < ApplicationController
status = 200 if @issue.save
render action, :status => (status || 500), :layout => false
else
@issue.title = params[:issue][:title] if params[:issue][:title]
@issue.body = params[:issue][:body] if params[:issue][:body]
status = 200 if @issue.save
status = 200 if @issue.update_attributes(params[:issue])
render :nothing => true, :status => (status || 500), :layout => false
end
end