housekeeper-has_activity 0.4.3 → 0.4.4
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/VERSION.yml +1 -1
- data/has_activity.gemspec +1 -1
- data/init.rb +1 -3
- data/lib/has_activity.rb +2 -5
- metadata +1 -1
data/VERSION.yml
CHANGED
data/has_activity.gemspec
CHANGED
data/init.rb
CHANGED
data/lib/has_activity.rb
CHANGED
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
# HasActivity
|
|
7
7
|
|
|
8
8
|
require 'core_ext'
|
|
9
|
-
require File.expand_path(File.join( File.dirname( __FILE__ ), '..', 'init.rb' ))
|
|
10
9
|
|
|
11
|
-
module Elctech
|
|
12
10
|
module Has #:nodoc:
|
|
13
11
|
module Activity #:nodoc:
|
|
14
12
|
def self.included(base)
|
|
@@ -23,8 +21,8 @@ module Elctech
|
|
|
23
21
|
|
|
24
22
|
def has_activity(options={})
|
|
25
23
|
options[:by] ||= "created_at"
|
|
26
|
-
include
|
|
27
|
-
extend
|
|
24
|
+
include Has::Activity::InstanceMethods
|
|
25
|
+
extend Has::Activity::SingletonMethods
|
|
28
26
|
|
|
29
27
|
self.activity_options = options
|
|
30
28
|
end
|
|
@@ -230,4 +228,3 @@ module Elctech
|
|
|
230
228
|
|
|
231
229
|
end
|
|
232
230
|
end
|
|
233
|
-
end
|