Commit ff409765500b7416650f17623b98292fd3ae09df

Authored by Michel Felipe
1 parent bd6c14ab

Removed override in method 'reject_details' on subclasses of Task model. Now by …

…default the text area for reject explanation is always showedin every task
app/models/abuse_complaint.rb
@@ -40,10 +40,6 @@ class AbuseComplaint < Task @@ -40,10 +40,6 @@ class AbuseComplaint < Task
40 true 40 true
41 end 41 end
42 42
43 - def reject_details  
44 - true  
45 - end  
46 -  
47 def icon 43 def icon
48 {:type => :profile_image, :profile => reported, :url => reported.url} 44 {:type => :profile_image, :profile => reported, :url => reported.url}
49 end 45 end
app/models/approve_article.rb
@@ -77,10 +77,6 @@ class ApproveArticle < Task @@ -77,10 +77,6 @@ class ApproveArticle < Task
77 true 77 true
78 end 78 end
79 79
80 - def reject_details  
81 - true  
82 - end  
83 -  
84 def default_decision 80 def default_decision
85 if article 81 if article
86 'skip' 82 'skip'
app/models/approve_comment.rb
@@ -60,10 +60,6 @@ class ApproveComment < Task @@ -60,10 +60,6 @@ class ApproveComment < Task
60 true 60 true
61 end 61 end
62 62
63 - def reject_details  
64 - true  
65 - end  
66 -  
67 def default_decision 63 def default_decision
68 if article 64 if article
69 'skip' 65 'skip'
app/models/create_community.rb
@@ -56,10 +56,6 @@ class CreateCommunity < Task @@ -56,10 +56,6 @@ class CreateCommunity < Task
56 end 56 end
57 end 57 end
58 58
59 - def reject_details  
60 - true  
61 - end  
62 -  
63 # tells if this request was rejected 59 # tells if this request was rejected
64 def rejected? 60 def rejected?
65 self.status == Task::Status::CANCELLED 61 self.status == Task::Status::CANCELLED
app/models/create_enterprise.rb
@@ -158,10 +158,6 @@ class CreateEnterprise < Task @@ -158,10 +158,6 @@ class CreateEnterprise < Task
158 {:message => _('%{requestor} wants to create enterprise %{subject}.')} 158 {:message => _('%{requestor} wants to create enterprise %{subject}.')}
159 end 159 end
160 160
161 - def reject_details  
162 - true  
163 - end  
164 -  
165 def task_created_message 161 def task_created_message
166 _('Your request for registering enterprise "%{enterprise}" at %{environment} was just received. It will be reviewed by the validator organization of your choice, according to its methods and criteria. 162 _('Your request for registering enterprise "%{enterprise}" at %{environment} was just received. It will be reviewed by the validator organization of your choice, according to its methods and criteria.
167 163
plugins/bsc/lib/bsc_plugin/associate_enterprise.rb
@@ -23,10 +23,6 @@ class BscPlugin::AssociateEnterprise < Task @@ -23,10 +23,6 @@ class BscPlugin::AssociateEnterprise < Task
23 {:type => :defined_image, :src => src, :name => bsc.name} 23 {:type => :defined_image, :src => src, :name => bsc.name}
24 end 24 end
25 25
26 - def reject_details  
27 - true  
28 - end  
29 -  
30 def perform 26 def perform
31 bsc.enterprises << enterprise 27 bsc.enterprises << enterprise
32 end 28 end
plugins/sub_organizations/lib/sub_organizations_plugin/approve_paternity.rb
@@ -28,10 +28,6 @@ class SubOrganizationsPlugin::ApprovePaternity &lt; Task @@ -28,10 +28,6 @@ class SubOrganizationsPlugin::ApprovePaternity &lt; Task
28 {:message => _('%{requestor} wants to add this organization as a sub-organization of %{linked_subject}.')} 28 {:message => _('%{requestor} wants to add this organization as a sub-organization of %{linked_subject}.')}
29 end 29 end
30 30
31 - def reject_details  
32 - true  
33 - end  
34 -  
35 def icon 31 def icon
36 {:type => :profile_image, :profile => parent, :url => parent.url} 32 {:type => :profile_image, :profile => parent, :url => parent.url}
37 end 33 end