Commit 9b47f92b3e6420879a54289c3b6d01e88438c2de
1 parent
67bb5c90
Exists in
master
and in
23 other branches
ActionItem17: added a edit_validation info action to handle the information abou…
…t the validation entity git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1197 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
app/controllers/my_profile/enterprise_validation_controller.rb
| ... | ... | @@ -49,4 +49,13 @@ class EnterpriseValidationController < MyProfileController |
| 49 | 49 | end |
| 50 | 50 | end |
| 51 | 51 | |
| 52 | + def edit_validation_info | |
| 53 | + @info = profile.validation_info | |
| 54 | + if request.post? | |
| 55 | + if @info.update_attributes(params[:info]) | |
| 56 | + redirect_to :action => 'index' | |
| 57 | + end | |
| 58 | + end | |
| 59 | + end | |
| 60 | + | |
| 52 | 61 | end | ... | ... |