rack-active_record_status 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,11 @@
|
|
1
1
|
module Rack
|
2
2
|
class ActiveRecordStatus
|
3
|
-
def initialize(app)
|
4
|
-
@app = app
|
3
|
+
def initialize(app, path='/active_record_status')
|
4
|
+
@app, @path = app, path
|
5
5
|
end
|
6
6
|
|
7
7
|
def call(env)
|
8
|
-
if env['PATH_INFO']
|
8
|
+
if @path == env['PATH_INFO']
|
9
9
|
get_status
|
10
10
|
else
|
11
11
|
@app.call(env)
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-active_record_status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 3
|
9
|
+
version: "0.3"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Aaron Suggs
|