Not sure what you mean by "when updating the theme with some options for Post," but Post callbacks will only be executed when the post object is updated.
those. this will cause callbacks:
@post.update_attributes(:topics_attributes => [...])
... but it will not:
@topic.update_attributes(:post_id => 123, ...)
If you want to call the Post after_update when updating the theme, you can do this:
# topic.rb after_update :touch_post private def touch_post post.touch end
The observer code will behave similarly to callbacks.
source share