acts_as_stampable 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/acts_as_stampable/version.rb +1 -1
- data/lib/acts_as_stampable.rb +0 -5
- metadata +1 -1
data/lib/acts_as_stampable.rb
CHANGED
|
@@ -9,9 +9,6 @@ module ActsAsStampable
|
|
|
9
9
|
super
|
|
10
10
|
|
|
11
11
|
base.extend(ClassMethods)
|
|
12
|
-
base.class_eval do
|
|
13
|
-
include InstanceMethods
|
|
14
|
-
end
|
|
15
12
|
end
|
|
16
13
|
|
|
17
14
|
module ClassMethods
|
|
@@ -23,7 +20,6 @@ module ActsAsStampable
|
|
|
23
20
|
end
|
|
24
21
|
end
|
|
25
22
|
|
|
26
|
-
module InstanceMethods
|
|
27
23
|
def set_creator_attribute
|
|
28
24
|
self.created_by = User.the_user.login
|
|
29
25
|
end
|
|
@@ -31,7 +27,6 @@ module ActsAsStampable
|
|
|
31
27
|
def set_updater_attribute
|
|
32
28
|
self.updated_by = User.the_user.login
|
|
33
29
|
end
|
|
34
|
-
end
|
|
35
30
|
end
|
|
36
31
|
|
|
37
32
|
ActiveRecord::Base.send :include, ActsAsStampable
|