Observer method names

I haven’t seen it documented anywhere, but can observer methods be given
a prefix in their name like ‘after_’ followed by my controller’s method
name?

For instance I have a couple of methods called ‘create’ and
‘create_reply’. Can I have ‘after_create’ and ‘after_create_reply’ in
my observer class and expect it to work?

Jose

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs