Commit bb9d15833b5ca1cc9cb9a5368438166ca748191e
1 parent
57a581c3
Exists in
master
and in
5 other branches
Refactors mpog_software_plugin_myprofile_controller.
Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
controllers/mpog_software_plugin_myprofile_controller.rb
| ... | ... | @@ -6,7 +6,9 @@ class MpogSoftwarePluginMyprofileController < MyProfileController |
| 6 | 6 | |
| 7 | 7 | def edit_institution |
| 8 | 8 | @show_sisp_field = environment.admins.include?(current_user.person) |
| 9 | - @state_list = NationalRegion.find(:all, :conditions=>["national_region_type_id = ?", 2], :order=>"name") | |
| 9 | + @estate_list = NationalRegion.find(:all, :conditions => | |
| 10 | + {:national_region_type_id => 2}, | |
| 11 | + :order=>"name") | |
| 10 | 12 | |
| 11 | 13 | @institution = @profile.institution |
| 12 | 14 | ... | ... |