hook_controller_projects_new_after_save-r9299.patch

Patch add a hook for controller_projects_new_after_save - Sajin Andrei, 2012-04-02 11:26

Download (650 Bytes)

View differences:

app/controllers/projects_controller.rb (working copy)
78 78
    @project.safe_attributes = params[:project]
79 79

  
80 80
    if validate_parent_id && @project.save
81
      call_hook(:controller_projects_new_after_save, { :params => params, :project => @project})
81 82
      @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id')
82 83
      # Add current user as a project member if he is not admin
83 84
      unless User.current.admin?