Commit 09b2dd375a3d4b812f8f9eef300f56da396d3bc6

Authored by David Silva
1 parent d2f905f7
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

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 &lt; 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 &lt; 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  
... ...