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
- def record_class_Name
5
- Rack::Bug::ActiveRecordPanel.record(self.class.base_class.name)
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{lrd_rack_bug}
5
- s.version = "0.3.0.3"
5
+ s.version = "0.3.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Evan Dorn", "Bryan Helmkamp"]
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require "rubygems"
2
- require "spec"
3
2
  require "webrat"
4
3
  require "rack/test"
5
4
 
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: 81
4
+ hash: 95
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - 0
10
- - 3
11
- version: 0.3.0.3
10
+ - 4
11
+ version: 0.3.0.4
12
12
  platform: ruby
13
13
  authors:
14
14
  - Evan Dorn