diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-05-14 14:44:58 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-06-04 13:51:15 +0100 |
commit | 54a985b3c0ed47ba351dda7043effc14be1257bd (patch) | |
tree | 59ab3be252a8d67758e39fe6a36a8ff05b4b8aca /app/controllers/public_body_controller.rb | |
parent | e0b3355272c1c490d380028074addfe0f10d208b (diff) |
Extract logic in view to controller
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r-- | app/controllers/public_body_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index 4a0e3efcd..2b90fee42 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -82,6 +82,8 @@ class PublicBodyController < ApplicationController @existing_track = TrackThing.find_existing(@user, @track_thing) end + @follower_count = TrackThing.count(:all, :conditions => ["public_body_id = ?", @public_body.id]) + @feed_autodetect = [ { :url => do_track_url(@track_thing, 'feed'), :title => @track_thing.params[:title_in_rss], :has_json => true } ] |