Project

General

Profile

How to catch when project is closed

Added by Willmore BattleShipNet about 6 years ago

Project has method

  def close
    self_and_descendants.status(STATUS_ACTIVE).update_all :status => STATUS_CLOSED
  end

updating with `update_all` means that when projects are closed callback `after_save` is not called.

How do you catch (through model) when a project is closed anyway?