Skip to content

Commit

Permalink
Merge pull request #258 from qichunren/master
Browse files Browse the repository at this point in the history
Fixed issue #251
  • Loading branch information
huacnlee committed Mar 22, 2012
2 parents 6db0c58 + 15c9f45 commit 0c3da9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/api/entities.rb
Expand Up @@ -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.