Revision 437:102056ec2de9 app/controllers
| app/controllers/sys_controller.rb | ||
|---|---|---|
| 69 | 69 |
render :nothing => true, :status => 404 |
| 70 | 70 |
end |
| 71 | 71 |
|
| 72 |
def clear_repository_cache |
|
| 73 |
project = Project.find(params[:id]) |
|
| 74 |
if project.repository |
|
| 75 |
project.repository.clear_cache |
|
| 76 |
end |
|
| 77 |
render :nothing => true, :status => 200 |
|
| 78 |
rescue ActiveRecord::RecordNotFound |
|
| 79 |
render :nothing => true, :status => 404 |
|
| 80 |
end |
|
| 81 |
|
|
| 72 | 82 |
def set_embedded_active |
| 73 | 83 |
project = Project.find(params[:id]) |
| 74 | 84 |
mods = project.enabled_modules |
Also available in: Unified diff