Open
Description
hi Alloy, I am trying to add an observer-like behaviour in MotionData's managedObject.
here are few attempts I made
naoyamakino@6bc7050
this works expect what I want to do eventually is something like
Class Author < MotionData::ManagedObject
afterSave :after_save
def after_save(notification)
#do something with notification
end
end
here is my attempt
naoyamakino@9253454
this spec is failing and Author.after_save
is not getting called.
I can't quite figure out why it is not calling it and how to make it work.
one thing I notice is that self in naoyamakino@6bc7050#L0R57 is an instance of RecipeListTableViewController but here naoyamakino@9253454#L1R130 is Author class itself.
first of all, do you think my approach to add observer behaviour is a right track?
and do you have any suggestions on how to make it work?
thanks for your time.
cheers
Metadata
Metadata
Assignees
Labels
No labels
Activity