Commit 300e6a3b452002a99c16f93bba630865aec953cd
Committed by
Rodrigo Souto
1 parent
e482cb27
Exists in
master
and in
29 other branches
change type parameter for content_type
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/api/v1/articles.rb
... | ... | @@ -65,7 +65,7 @@ module API |
65 | 65 | post do |
66 | 66 | community = environment.communities.find(params[:community_id]) |
67 | 67 | article = community.articles.build(params[:article].merge(:last_changed_by => current_person)) |
68 | - article.type= params[:type].nil? ? 'TinyMceArticle' : params[:type] | |
68 | + article.type= params[:content_type].nil? ? 'TinyMceArticle' : params[:content_type] | |
69 | 69 | if !article.save |
70 | 70 | render_api_errors!(article.errors.full_messages) |
71 | 71 | end | ... | ... |