diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-05-23 15:19:07 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-05-23 15:19:07 +0100 |
commit | f43d20df70bb5d23aa6ab0f84a157a38856c10a4 (patch) | |
tree | 1d75d8eb91a68542845811bc23c087b200f030fb | |
parent | a57b32aaac6cc36f0fc54eb517b90e2b694f1f40 (diff) |
Add visible_request_count to /version.json
-rw-r--r-- | app/controllers/general_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 6f0d29889..861f90c9d 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -178,7 +178,8 @@ class GeneralController < ApplicationController format.json { render :json => { :alaveteli_git_commit => alaveteli_git_commit, :alaveteli_version => ALAVETELI_VERSION, - :ruby_version => RUBY_VERSION + :ruby_version => RUBY_VERSION, + :visible_request_count => InfoRequest.visible.count }} end end |