Module: CacheAnnotation
- Defined in:
- lib/cache_annotations.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(klass) ⇒ Object
:nodoc:.
Class Method Details
.included(klass) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cache_annotations.rb', line 5 def self.included(klass) #:nodoc: if klass.methods.include? "method_added" class << klass alias cache_annotation_saved_method_added method_added end else class << klass define_method "cache_annotation_saved_method_added" do |a| end end end klass.extend(CacheAnnotation::ClassMethods) end |