lean_stamper 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lean_stamper.gemspec CHANGED
@@ -12,5 +12,5 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
13
13
  gem.name = "lean_stamper"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = "0.0.3"
15
+ gem.version = "0.0.4"
16
16
  end
data/lib/stampable.rb CHANGED
@@ -30,18 +30,18 @@ module Ddb
30
30
 
31
31
  private
32
32
  def has_stamper?
33
- !User.stamper.nil?
33
+ !::User.stamper.nil?
34
34
  end
35
35
 
36
36
  def set_creator_attribute
37
37
  if respond_to?(:creator=) && has_stamper?
38
- self.creator = User.stamper
38
+ self.creator = ::User.stamper
39
39
  end
40
40
  end
41
41
 
42
42
  def set_updater_attribute
43
43
  if respond_to?(:updater=) && has_stamper?
44
- self.updater = User.stamper
44
+ self.updater = ::User.stamper
45
45
  end
46
46
  end
47
47
  end
data/lib/userstamp.rb CHANGED
@@ -28,7 +28,7 @@ module Ddb
28
28
  # your own implementation of this method to the private section of
29
29
  # the controller where you are including the Userstamp module.
30
30
  def set_stamper
31
- User.stamper = self.current_user
31
+ ::User.stamper = self.current_user
32
32
  end
33
33
 
34
34
  # The <tt>reset_stamper</tt> method as implemented here assumes that a
@@ -37,7 +37,7 @@ module Ddb
37
37
  # the private section of the controller where you are including the
38
38
  # Userstamp module.
39
39
  def reset_stamper
40
- User.reset_stamper
40
+ ::User.reset_stamper
41
41
  end
42
42
  #end private
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lean_stamper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-15 00:00:00.000000000 Z
13
+ date: 2012-03-15 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: A stripped down version of original userstamp plugin
16
16
  email: