lrd_rack_bug 0.3.0.3 → 0.3.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,13 @@
|
|
1
1
|
if defined?(ActiveRecord)
|
2
2
|
ActiveRecord::Base.after_initialize(:record_class_name)
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
module RackBugExtension
|
5
|
+
def record_class_name
|
6
|
+
Rack::Bug::ActiveRecordPanel.record(self.class.base_class.name)
|
7
|
+
end
|
6
8
|
end
|
9
|
+
class ActiveRecord::Base
|
10
|
+
include RackBugExtension
|
11
|
+
end
|
12
|
+
|
7
13
|
end
|
data/lrd_rack_bug.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lrd_rack_bug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 95
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 0.3.0.
|
10
|
+
- 4
|
11
|
+
version: 0.3.0.4
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Evan Dorn
|