Commit 09b2dd375a3d4b812f8f9eef300f56da396d3bc6
1 parent
d2f905f7
Exists in
master
and in
5 other branches
Alter mpog_software_plugin based on robocop.
Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
Showing
1 changed file
with
11 additions
and
14 deletions
Show diff stats
lib/mpog_software_plugin.rb
| ... | ... | @@ -72,11 +72,8 @@ class MpogSoftwarePlugin < Noosfero::Plugin |
| 72 | 72 | |
| 73 | 73 | def profile_tabs |
| 74 | 74 | if context.profile.community? |
| 75 | - if context.profile.software? | |
| 76 | - profile_tabs_software | |
| 77 | - elsif context.profile.institution? | |
| 78 | - profile_tabs_institution | |
| 79 | - end | |
| 75 | + profile_tabs_software if context.profile.software? | |
| 76 | + profile_tabs_institution | |
| 80 | 77 | end |
| 81 | 78 | end |
| 82 | 79 | |
| ... | ... | @@ -193,18 +190,18 @@ class MpogSoftwarePlugin < Noosfero::Plugin |
| 193 | 190 | |
| 194 | 191 | def profile_required_list |
| 195 | 192 | fields = {} |
| 196 | - fields[:person_fields] = %w('cell_phone', | |
| 197 | - 'contact_phone', | |
| 198 | - 'comercial_phone', | |
| 199 | - 'country', | |
| 200 | - 'city', | |
| 201 | - 'state', | |
| 202 | - 'organization_website', | |
| 193 | + fields[:person_fields] = %w('cell_phone' | |
| 194 | + 'contact_phone' | |
| 195 | + 'comercial_phone' | |
| 196 | + 'country' | |
| 197 | + 'city' | |
| 198 | + 'state' | |
| 199 | + 'organization_website' | |
| 203 | 200 | 'image', |
| 204 | - 'identifier', | |
| 201 | + 'identifier' | |
| 205 | 202 | 'name') |
| 206 | 203 | |
| 207 | - fields[:user_fields] = %w('secondary_email', 'email') | |
| 204 | + fields[:user_fields] = %w('secondary_email' 'email') | |
| 208 | 205 | fields |
| 209 | 206 | end |
| 210 | 207 | ... | ... |