diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-03-02 16:27:55 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-03-02 16:27:55 +0000 |
commit | bb54b64796772c1bc8266f01d2e93d3f07bda39d (patch) | |
tree | c369f3e82348b4bc255fb392491710382dddf5d5 /app/controllers | |
parent | 6096ba531e76fe0edb1e03527514f47170a50ea6 (diff) | |
parent | 56e7fe278e84200324e2ec2a1be72c3bd998c5ff (diff) |
Merge branch 'issues/1526-redesign-make-request-process' into rails-3-develop
Diffstat (limited to 'app/controllers')
-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| |