engines/adva_forum/app/models/board.rb
# Called when a board is created. When there are boardless topics they are moved to the board.
# This is to protect the user from loosing topics that are already assigned to the forum when 
# he creates a board.
Called when a board is created. When there are boardless topics they are moved to the board.
This is to protect the user from loosing topics that are already assigned to the forum when
he creates a board.
Called when a board is created . When there are boardless topics they are moved to the board . This is to protect the user from loosing topics that are already assigned to the forum when he creates a board .
def assign_topics
    owner.boardless_topics.each do |topic|
      topics << topic
      topics_counter.increment!
      topic.posts.each do |post|
        post.update_attribute(:board, self)
        posts_counter.increment!
      end
    end
  end
def assign_topics owner . boardless_topics . each do | topic | topics << topic topics_counter . increment! topic . posts . each do | post | post . update_attribute ( :board , self ) posts_counter . increment! end end end
Called when a board is created.
Called when a board is created .