acts_as_blamable 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ v0.0.3 (2010-04-20)
2
+
3
+ * Bug fix: Kernel.const_get(self.class.bl_conf[:class_name]) doesn't work with Namespace i.e. System::User
4
+
1
5
  v0.0.2 (2010-04-20)
2
6
 
3
7
  * Edited documentation
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_blamable}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Philipp Ullmann"]
@@ -38,7 +38,7 @@ module ActsAsBlamable
38
38
  end
39
39
 
40
40
  def current_user
41
- Kernel.const_get(self.class.bl_conf[:class_name]).send("#{self.class.bl_conf[:current_user_method]}")
41
+ self.class.bl_conf[:class_name].constantize.send("#{self.class.bl_conf[:current_user_method]}")
42
42
  end
43
43
  end
44
44
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philipp Ullmann