Commit bb9d15833b5ca1cc9cb9a5368438166ca748191e

Authored by David Silva
1 parent 57a581c3

Refactors mpog_software_plugin_myprofile_controller.

Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
controllers/mpog_software_plugin_myprofile_controller.rb
@@ -6,7 +6,9 @@ class MpogSoftwarePluginMyprofileController &lt; MyProfileController @@ -6,7 +6,9 @@ class MpogSoftwarePluginMyprofileController &lt; MyProfileController
6 6
7 def edit_institution 7 def edit_institution
8 @show_sisp_field = environment.admins.include?(current_user.person) 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 @institution = @profile.institution 13 @institution = @profile.institution
12 14