Commit 014591dcecb89044115139ad6b1928f6a1516082
1 parent
6017a75c
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
api: move slug from Article to ArticleBase
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/entities.rb
... | ... | @@ -98,6 +98,7 @@ module Noosfero |
98 | 98 | expose :tag_list |
99 | 99 | expose :children_count |
100 | 100 | expose :followers_count |
101 | + expose :slug, :documentation => {:type => "String", :desc => "Trimmed and parsed name of a article"} | |
101 | 102 | end |
102 | 103 | |
103 | 104 | class Article < ArticleBase |
... | ... | @@ -106,7 +107,6 @@ module Noosfero |
106 | 107 | expose :children, using: ArticleBase do |article, options| |
107 | 108 | article.children.limit(Noosfero::API::V1::Articles::MAX_PER_PAGE) |
108 | 109 | end |
109 | - expose :slug, :documentation => {:type => "String", :desc => "Trimmed and parsed name of a article"} | |
110 | 110 | end |
111 | 111 | |
112 | 112 | class Comment < Entity | ... | ... |