From 014591dcecb89044115139ad6b1928f6a1516082 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 9 Sep 2015 10:33:58 -0300 Subject: [PATCH] api: move slug from Article to ArticleBase --- lib/noosfero/api/entities.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/noosfero/api/entities.rb b/lib/noosfero/api/entities.rb index b484c16..d127aad 100644 --- a/lib/noosfero/api/entities.rb +++ b/lib/noosfero/api/entities.rb @@ -98,6 +98,7 @@ module Noosfero expose :tag_list expose :children_count expose :followers_count + expose :slug, :documentation => {:type => "String", :desc => "Trimmed and parsed name of a article"} end class Article < ArticleBase @@ -106,7 +107,6 @@ module Noosfero expose :children, using: ArticleBase do |article, options| article.children.limit(Noosfero::API::V1::Articles::MAX_PER_PAGE) end - expose :slug, :documentation => {:type => "String", :desc => "Trimmed and parsed name of a article"} end class Comment < Entity -- libgit2 0.21.2