Enabled callback halting and added copyright notices
This commit is contained in:
parent
dc4787e905
commit
806a79a72a
3 changed files with 49 additions and 7 deletions
|
@ -32,10 +32,10 @@ module CouchRest
|
|||
attr_accessor :casted_by
|
||||
|
||||
# Callbacks
|
||||
define_callbacks :create
|
||||
define_callbacks :save
|
||||
define_callbacks :update
|
||||
define_callbacks :destroy
|
||||
define_callbacks :create, "result == :halt"
|
||||
define_callbacks :save, "result == :halt"
|
||||
define_callbacks :update, "result == :halt"
|
||||
define_callbacks :destroy, "result == :halt"
|
||||
|
||||
def initialize(passed_keys={})
|
||||
apply_defaults # defined in CouchRest::Mixins::Properties
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue