Module: PackRat::Extensions::ActiveRecord

Defined in:
lib/pack_rat/extensions/active_record.rb

Instance Method Summary collapse

Instance Method Details

#inherited(child_class) ⇒ Object

When AR::Base is inherited, incude PackRat into inheriting class



6
7
8
9
# File 'lib/pack_rat/extensions/active_record.rb', line 6

def inherited(child_class)
  child_class.send(:include, PackRat::CacheHelper)
  super
end