Permalink
Browse files

Merge pull request #258 from qichunren/master

Fixed issue #251
  • Loading branch information...
2 parents 6db0c58 + 15c9f45 commit 0c3da9fa231e6132808e729e9a7da0102ac34e50 @huacnlee huacnlee committed Mar 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/api/entities.rb
View
@@ -21,7 +21,8 @@ class Topic < Grape::Entity
end
class Node < Grape::Entity
- expose :_id, :name
+ expose :_id, :name, :topics_count, :summary, :section_id, :sort
+ expose(:section_name) {|model, opts| model.section.name.to_s rescue "" }
end
end
end

0 comments on commit 0c3da9f

Please sign in to comment.