#-- # Copyright (C) 2007 Dimitrij Denissenko # Please read LICENSE document for more information. #++ class GroupObserver < ActiveRecord::Observer observe Group def before_save(group) if group.access_to_all_projects? group.projects = Project.find(:all) end end end