From bb9d15833b5ca1cc9cb9a5368438166ca748191e Mon Sep 17 00:00:00 2001 From: David Carlos Date: Tue, 9 Dec 2014 17:52:35 -0200 Subject: [PATCH] Refactors mpog_software_plugin_myprofile_controller. --- controllers/mpog_software_plugin_myprofile_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/mpog_software_plugin_myprofile_controller.rb b/controllers/mpog_software_plugin_myprofile_controller.rb index 38bc5de..3b25218 100644 --- a/controllers/mpog_software_plugin_myprofile_controller.rb +++ b/controllers/mpog_software_plugin_myprofile_controller.rb @@ -6,7 +6,9 @@ class MpogSoftwarePluginMyprofileController < MyProfileController def edit_institution @show_sisp_field = environment.admins.include?(current_user.person) - @state_list = NationalRegion.find(:all, :conditions=>["national_region_type_id = ?", 2], :order=>"name") + @estate_list = NationalRegion.find(:all, :conditions => + {:national_region_type_id => 2}, + :order=>"name") @institution = @profile.institution -- libgit2 0.21.2