CouchRest vs ActiveRecord Callbacks

4 views
Skip to first unread message

viatropos

unread,
Nov 22, 2009, 6:28:55 PM11/22/09
to CouchRest
In what ways do CouchRest callbacks differ from ActiveRecord
callbacks?

I see from the ActiveSupport docs that "run_callbacks" returns a
boolean:

run_callbacks(kind, options = {}, &block)

Runs all the callbacks defined for the given options.
If a block is given it will be called after each callback receiving as
arguments:
* the result from the callback
* the object which has the callback
If the result from the block evaluates to false, the callback chain is
stopped.

Does CouchRest's "run_callbacks" work as such? How does it differ?
How does it accomplish the same thing?

Thanks,
Lance
Reply all
Reply to author
Forward
0 new messages