diff options
author | Martin Wright <martin@mysociety.org> | 2014-12-11 12:25:50 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-03-02 16:25:30 +0000 |
commit | bc1e3a2f1443a20d107a50e15833232a986e5773 (patch) | |
tree | dfa2cc97e0df51c2a727fd739e057215fa057d48 /app/controllers/public_body_controller.rb | |
parent | 1edbf2de973755700ab7e628adde1a297cf9ab3d (diff) |
WIP commit of public body page redesign
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r-- | app/controllers/public_body_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index 2e540d198..cc3d0b64a 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -58,6 +58,9 @@ class PublicBodyController < ApplicationController flash.keep(:search_params) @track_thing = TrackThing.create_track_for_public_body(@public_body) + if @user + @existing_track = TrackThing.find_existing(@user, @track_thing) + end @feed_autodetect = [ { :url => do_track_url(@track_thing, 'feed'), :title => @track_thing.params[:title_in_rss], :has_json => true } ] respond_to do |format| |