Module: DataMapper::Observer

### Home Classes Methods

### In Files

- lib/dm-observer/observer.rb

### Namespace

- MODULE DataMapper::Observer::ClassMethods

### Methods

- ::included

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Observer
- DataMapper::Observer::ClassMethods

No matching classes.

# 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.