aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-05-23 15:19:07 +0100
committerGareth Rees <gareth@mysociety.org>2014-05-23 15:19:07 +0100
commitf43d20df70bb5d23aa6ab0f84a157a38856c10a4 (patch)
tree1d75d8eb91a68542845811bc23c087b200f030fb
parenta57b32aaac6cc36f0fc54eb517b90e2b694f1f40 (diff)
Add visible_request_count to /version.json
-rw-r--r--app/controllers/general_controller.rb3
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