Skip to content

Commit

Permalink
Leaving params[:article] nil is just fine.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Jan 17, 2011
1 parent e95ab74 commit 8e812f1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/controllers/admin/content_controller.rb
Expand Up @@ -100,7 +100,6 @@ def autosave
@article.parent_id = parent_id
end

params[:article] ||= {}
@article.attributes = params[:article]
@article.published = false
set_article_author
Expand Down Expand Up @@ -156,8 +155,6 @@ def new_or_edit
@article.keywords = Tag.collection_to_string @article.tags
@article.attributes = params[:article]

params[:article] ||= {}

if request.post?
set_article_author
save_attachments
Expand Down

0 comments on commit 8e812f1

Please sign in to comment.