Methods

Class/Module Index [+]

Quicksearch

DataMapper::Observer

Observers allow you to add callback hooks to DataMapper::Resource objects in a separate class. This is great for separating out logic that is not really part of the model, but needs to be triggered by a model, or models.

Public Class Methods

included(klass) click to toggle source
# File lib/dm-observer/observer.rb, line 9
def self.included(klass)
  klass.extend(ClassMethods)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.