diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-05-14 14:47:13 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-06-04 13:51:15 +0100 |
commit | 98e1fd244cc145d7ad19af48d48b7287e3ba2c58 (patch) | |
tree | d540abf203c7ebff86cb3c076ad1c0f788eb8938 | |
parent | 54a985b3c0ed47ba351dda7043effc14be1257bd (diff) |
Use ARel syntax
-rw-r--r-- | app/controllers/public_body_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index 2b90fee42..376b2024a 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -82,7 +82,7 @@ class PublicBodyController < ApplicationController @existing_track = TrackThing.find_existing(@user, @track_thing) end - @follower_count = TrackThing.count(:all, :conditions => ["public_body_id = ?", @public_body.id]) + @follower_count = TrackThing.where(:public_body_id => @public_body.id).count @feed_autodetect = [ { :url => do_track_url(@track_thing, 'feed'), :title => @track_thing.params[:title_in_rss], |