Commit 7354ca37e069f2e3b22e7cee12e1b3685a2a5896
Committed by
Arthur Esposte
1 parent
a4017bb8
Exists in
master
and in
5 other branches
Removing institution and user hotsopt.
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Showing
1 changed file
with
0 additions
and
28 deletions
Show diff stats
lib/software_communities_plugin.rb
... | ... | @@ -17,24 +17,6 @@ class SoftwareCommunitiesPlugin < Noosfero::Plugin |
17 | 17 | _('Add Public Software and MPOG features.') |
18 | 18 | end |
19 | 19 | |
20 | - def profile_editor_extras | |
21 | - profile = context.profile | |
22 | - | |
23 | - if profile.person? | |
24 | - expanded_template('person_editor_extras.html.erb') | |
25 | - end | |
26 | - end | |
27 | - | |
28 | - def profile_editor_transaction_extras | |
29 | - single_hash_transactions = { :user => 'user', | |
30 | - :instituton => 'instituton' | |
31 | - } | |
32 | - | |
33 | - single_hash_transactions.each do |model, transaction| | |
34 | - call_model_transaction(model, transaction) | |
35 | - end | |
36 | - end | |
37 | - | |
38 | 20 | def profile_tabs |
39 | 21 | if context.profile.community? |
40 | 22 | return profile_tabs_software if context.profile.software? |
... | ... | @@ -110,16 +92,6 @@ class SoftwareCommunitiesPlugin < Noosfero::Plugin |
110 | 92 | |
111 | 93 | private |
112 | 94 | |
113 | - def call_model_transaction(model,name) | |
114 | - send(name + '_transaction') if context.params.key?(model.to_sym) | |
115 | - end | |
116 | - | |
117 | - def call_institution_transaction(model) | |
118 | - context.profile.institution.send(model + '_id = ', | |
119 | - context.params[model.to_sym]) | |
120 | - context.profile.institution.save! | |
121 | - end | |
122 | - | |
123 | 95 | def software_info_button |
124 | 96 | { |
125 | 97 | :title => _('Software Info'), | ... | ... |