railhead_cacheify 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.
@@ -24,6 +24,10 @@ module RailheadCacheify
24
24
  end
25
25
 
26
26
  module ClassMethods
27
+ def use_cacheify
28
+ include RailheadCacheify
29
+ end
30
+
27
31
  def cacheify(key, options = {})
28
32
  class_eval <<-END
29
33
  alias _original_#{key} #{key}
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_cacheify"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
  s.date = "2010-08-22"
5
5
  s.summary = "RailheadCacheify is a Ruby on Rails plugin that helps caching model functions."
6
6
  s.email = "nagybence@tipogral.hu"
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bence Nagy