module CachedResource::Model

The Model module is included in ActiveResource::Base and provides methods to enable caching and manipulate the caching configuration

Attributes

cached_resource[RW]

Public Class Methods

setup_cached_resource!(options) click to toggle source

Set up cached resource for this class by creating a new configuration and establishing the necessary methods.

# File lib/cached_resource/cached_resource.rb, line 19
def setup_cached_resource!(options)
  @cached_resource = CachedResource::Configuration.new(options)
  send :include, CachedResource::Caching
  @cached_resource
end