module CachedResource::Model::ClassMethods

Public Instance Methods

inherited(child) click to toggle source

Copy a superclass's cached resource configuration if it's defined. Unfortunately, this means that any subclass that wants an independent configuration will need to execute: self.cached_resource = CachedResource::Configuration.new(options={})

Calls superclass method
# File lib/cached_resource/cached_resource.rb, line 32
def inherited(child)
  child.cached_resource = self.cached_resource if defined?(@cached_resource)
  super
end