Commit eb6c6b27067a031c023b7dc18cfed908434107a3
1 parent
bc8d4d45
Exists in
theme-brasil-digital-from-staging
and in
9 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
... | ... | @@ -66,7 +66,7 @@ module API |
66 | 66 | post do |
67 | 67 | community = environment.communities.find(params[:community_id]) |
68 | 68 | article = community.articles.build(params[:article].merge(:last_changed_by => current_person)) |
69 | - article.type= params[:type].nil? ? 'TinyMceArticle' : params[:type] | |
69 | + article.type= params[:content_type].nil? ? 'TinyMceArticle' : params[:content_type] | |
70 | 70 | if !article.save |
71 | 71 | render_api_errors!(article.errors.full_messages) |
72 | 72 | end | ... | ... |