module ActsAsMethodCacheable
Constants
- VERSION
Public Class Methods
acts_as_method_cacheable(opts = {})
click to toggle source
# File lib/acts_as_method_cacheable.rb, line 7 def self.acts_as_method_cacheable(opts = {}) unless class_variable_defined?(:@@class_level_cached_methods) include Internal cattr_accessor :class_level_cached_methods self.class_level_cached_methods = [] attr_accessor :instance_level_cached_methods extend_reload_with_cacheable_support end [opts[:methods]].compact.flatten.each do |method| cache_method(method) end end