It just doesn’t seem to be updating last_post_id and
last_post_forum_id correctly (or eloquently) when moving a post. The
method in question is move! in the topic model. Is there a “better”
way to do it?
It just doesn’t seem to be updating last_post_id and
last_post_forum_id correctly (or eloquently) when moving a post. The
method in question is move! in the topic model. Is there a “better”
way to do it?
update_last_post in forum.rb should be doing self.last_post= and
self.last_post_forum= (right now you’re just setting a local variable)
The code does not appear to be updating the last_post_id and
last_post_forum_id when moving topics out of sub-forums. The idea is
that if a post is the real last post in a sub-forum AND it’s parent(s)
it should update them all with that information. Am I doing this the
hard way?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.