acts_as_stampable 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/acts_as_stampable.rb +2 -2
- data/lib/acts_as_stampable/version.rb +1 -1
- metadata +1 -1
data/lib/acts_as_stampable.rb
CHANGED
@@ -21,11 +21,11 @@ module ActsAsStampable
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def set_creator_attribute
|
24
|
-
self.created_by = User.the_user.login
|
24
|
+
self.created_by = User.the_user.login if User.the_user
|
25
25
|
end
|
26
26
|
|
27
27
|
def set_updater_attribute
|
28
|
-
self.updated_by = User.the_user.login
|
28
|
+
self.updated_by = User.the_user.login if User.the_user
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|