Commit b810ff6031282a4ff2d2feda344f87fd4609dee9
1 parent
95b05a1e
Exists in
software_as_organization
changed software from community to organization
Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com>
Showing
3 changed files
with
13 additions
and
17 deletions
Show diff stats
src/noosfero-spb/software_communities/lib/ext/person.rb
... | ... | @@ -10,15 +10,19 @@ class Person |
10 | 10 | false |
11 | 11 | end |
12 | 12 | |
13 | - def softwares | |
14 | - softwares = [] | |
15 | - self.communities.each do |community| | |
16 | - if community.software? | |
17 | - softwares << community | |
18 | - end | |
19 | - end | |
13 | + #def softwares | |
14 | + # softwares = [] | |
15 | + # self.communities.each do |community| | |
16 | + # if community.software? | |
17 | + # softwares << community | |
18 | + # end | |
19 | + # end | |
20 | + # | |
21 | + # softwares | |
22 | + # end | |
20 | 23 | |
21 | - softwares | |
24 | + def softwares | |
25 | + memberships.softwares | |
22 | 26 | end |
23 | 27 | |
24 | 28 | end | ... | ... |
src/noosfero-spb/software_communities/lib/software.rb
src/noosfero-spb/software_communities/lib/software_info.rb
... | ... | @@ -119,14 +119,6 @@ class SoftwareInfo < ActiveRecord::Base |
119 | 119 | } |
120 | 120 | } |
121 | 121 | |
122 | - def community | |
123 | - return self.software | |
124 | - end | |
125 | - | |
126 | - def community= community | |
127 | - self.software = community.becomes(Software) if community | |
128 | - end | |
129 | - | |
130 | 122 | def license_info |
131 | 123 | license = LicenseInfo.find_by_id self.license_info_id |
132 | 124 | license_another = LicenseInfo.find_by_version("Another") | ... | ... |