Commit 375605b2f341ad47e57a73dd102b9e190ef97bd7
Committed by
Rodrigo Souto
1 parent
3d17bbb1
Exists in
api_tasks
and in
4 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 | ... | ... |