Change tag serializer to use tagged_people_count instead of people_count. Fixed typo (was tagge_people_count)
This commit is contained in:
parent
98ef5212f3
commit
c2c152ee4b
3 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ class Api::V0::Serializers::Tag
|
||||||
def as_json(opts={})
|
def as_json(opts={})
|
||||||
{
|
{
|
||||||
"name" => @stream.tag_name,
|
"name" => @stream.tag_name,
|
||||||
"person_count" => @stream.people_count,
|
"person_count" => @stream.tagged_people_count,
|
||||||
"followed_count" => @stream.tag_follow_count,
|
"followed_count" => @stream.tag_follow_count,
|
||||||
"posts" => []
|
"posts" => []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
.span-6.tags_people
|
.span-6.tags_people
|
||||||
%h3
|
%h3
|
||||||
= t('people', :count => @stream.tagge_people_count)
|
= t('people', :count => @stream.tagged_people_count)
|
||||||
|
|
||||||
.side_stream.stream
|
.side_stream.stream
|
||||||
= render :partial => 'people/index', :locals => {:people => @stream.tagged_people}
|
= render :partial => 'people/index', :locals => {:people => @stream.tagged_people}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class Stream::Tag < Stream::Base
|
||||||
@people ||= Person.profile_tagged_with(tag_name).paginate(:page => people_page, :per_page => 15)
|
@people ||= Person.profile_tagged_with(tag_name).paginate(:page => people_page, :per_page => 15)
|
||||||
end
|
end
|
||||||
|
|
||||||
def tagge_people_count
|
def tagged_people_count
|
||||||
@people_count ||= Person.profile_tagged_with(tag_name).count
|
@people_count ||= Person.profile_tagged_with(tag_name).count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue