Module: AridCache::ActiveRecord

Defined in:
lib/arid_cache/active_record.rb

Defined Under Namespace

Modules: ClassMethods, MirrorMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/arid_cache/active_record.rb', line 3

def self.included(base)
  base.extend         ClassMethods
  base.extend         MirrorMethods
  base.send :include, MirrorMethods
  base.class_eval do
    alias_method_chain :method_missing, :arid_cache
    alias_method_chain :respond_to?,    :arid_cache
  end
  class << base
    alias_method_chain :method_missing, :arid_cache
    alias_method_chain :respond_to?,    :arid_cache
  end
end