Commit 4fcb4c53d6ec43b686473e2e47e8dddd3ce79aef
- use mass assignment for loading attributes
- 0.1.15
| |   |
| 67 | 67 | |
| 68 | 68 | param = params[:repositories] || {} |
| 69 | 69 | |
| @repo = Repository.new(params[:id], param[:name], (param[:enabled] == true || param[:enabled] == 'true' || param[:enabled] == '1')) |
|
| @repo.autorefresh = param[:autorefresh] == 'true' || param[:enabled] == '1' |
| @repo.keep_packages = param[:keep_packages] == 'true' || param[:keep_packages] == '1' |
| @repo.url = param[:url] |
| @repo.priority = param[:priority] |
| @repo = Repository.new(params[:id], param[:name], param[:enabled]) |
| @repo.load param |
| 76 | 72 | |
| 77 | 73 | begin |
| 78 | 74 | unless @repo.save! |
| |   |
| 1 | 1 | ------------------------------------------------------------------- |
| Fri Mar 12 15:30:14 UTC 2010 - lslezak@suse.cz |
|
| - use mass assignment for loading attributes |
| - 0.1.15 |
|
| ------------------------------------------------------------------- |
| 2 | 8 | Thu Mar 11 08:00:24 UTC 2010 - lslezak@suse.cz |
| 3 | 9 | |
| 4 | 10 | - use @repo.save! so validation errors are reported via exception |
| |   |
| 36 | 36 | License: GPL v2 only |
| 37 | 37 | Group: Productivity/Networking/Web/Utilities |
| 38 | 38 | Autoreqprov: on |
| Version: 0.1.14 |
| Version: 0.1.15 |
| 40 | 40 | Release: 0 |
| 41 | 41 | Summary: YaST2 - Webservice - Patches |
| 42 | 42 | Source: www.tar.bz2 |