From 09b2dd375a3d4b812f8f9eef300f56da396d3bc6 Mon Sep 17 00:00:00 2001 From: David Carlos Date: Thu, 18 Dec 2014 17:09:37 +0000 Subject: [PATCH] Alter mpog_software_plugin based on robocop. --- lib/mpog_software_plugin.rb | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/lib/mpog_software_plugin.rb b/lib/mpog_software_plugin.rb index 5e9cf62..2807914 100644 --- a/lib/mpog_software_plugin.rb +++ b/lib/mpog_software_plugin.rb @@ -72,11 +72,8 @@ class MpogSoftwarePlugin < Noosfero::Plugin def profile_tabs if context.profile.community? - if context.profile.software? - profile_tabs_software - elsif context.profile.institution? - profile_tabs_institution - end + profile_tabs_software if context.profile.software? + profile_tabs_institution end end @@ -193,18 +190,18 @@ class MpogSoftwarePlugin < Noosfero::Plugin def profile_required_list fields = {} - fields[:person_fields] = %w('cell_phone', - 'contact_phone', - 'comercial_phone', - 'country', - 'city', - 'state', - 'organization_website', + fields[:person_fields] = %w('cell_phone' + 'contact_phone' + 'comercial_phone' + 'country' + 'city' + 'state' + 'organization_website' 'image', - 'identifier', + 'identifier' 'name') - fields[:user_fields] = %w('secondary_email', 'email') + fields[:user_fields] = %w('secondary_email' 'email') fields end -- libgit2 0.21.2