Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11589 (new defect)

Opened 8 months ago

Observers can't cancel action as documented

Reported by: hakonhc Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords:
Cc:

Description

In the documentation for ActiveRecord::Observer it says that "The observer can implement callback methods for each of the methods described in the Callbacks module." This seems to be incorrect. The observer can not cancel futher callbacks or action like the callbacks can by returning false. It should be stated explicitly or preferably the behaviour should work with observers to.