railhead_cacheify 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/railhead_cacheify.rb +18 -3
- data/railhead_cacheify.gemspec +1 -1
- metadata +3 -3
data/lib/railhead_cacheify.rb
CHANGED
@@ -24,9 +24,6 @@ module RailheadCacheify
|
|
24
24
|
end
|
25
25
|
|
26
26
|
module ClassMethods
|
27
|
-
def use_cacheify
|
28
|
-
include RailheadCacheify
|
29
|
-
end
|
30
27
|
|
31
28
|
def cacheify(key, options = {})
|
32
29
|
class_eval <<-END
|
@@ -39,3 +36,21 @@ module RailheadCacheify
|
|
39
36
|
end
|
40
37
|
end
|
41
38
|
|
39
|
+
|
40
|
+
module RailheadCacheifyLoader
|
41
|
+
|
42
|
+
def self.included(base)
|
43
|
+
base.extend ClassMethods
|
44
|
+
end
|
45
|
+
|
46
|
+
module ClassMethods
|
47
|
+
|
48
|
+
def use_cacheify
|
49
|
+
include RailheadCacheify
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
|
55
|
+
ActiveRecord::Base.send :include, RailheadCacheifyLoader
|
56
|
+
|
data/railhead_cacheify.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railhead_cacheify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bence Nagy
|