Commit 7b7d1cf0611670508e4888288f146255dd603596

Authored by Victor Costa
1 parent 95425b4b

Remove commented code

lib/proposals_discussion_plugin/proposal_task.rb
@@ -176,10 +176,6 @@ class ProposalsDiscussionPlugin::ProposalTask < Task @@ -176,10 +176,6 @@ class ProposalsDiscussionPlugin::ProposalTask < Task
176 {:type => :profile_image, :profile => requestor, :url => requestor.url} 176 {:type => :profile_image, :profile => requestor, :url => requestor.url}
177 end 177 end
178 178
179 -# def permission  
180 -# :#manage_memberships  
181 -# end  
182 -  
183 def target_notification_description 179 def target_notification_description
184 _('%{requestor} wants to send a proposal.') % {:requestor => requestor.name} 180 _('%{requestor} wants to send a proposal.') % {:requestor => requestor.name}
185 end 181 end
@@ -189,61 +185,6 @@ class ProposalsDiscussionPlugin::ProposalTask < Task @@ -189,61 +185,6 @@ class ProposalsDiscussionPlugin::ProposalTask < Task
189 _('You will need login to %{system} in order to accept or reject the proposal sent by %{requestor}') % { :system => target.environment.name, :requestor => requestor.name} 185 _('You will need login to %{system} in order to accept or reject the proposal sent by %{requestor}') % { :system => target.environment.name, :requestor => requestor.name}
190 end 186 end
191 187
192 -# def article_title  
193 -# article ? article.title : _('(The original text was removed)')  
194 -# end  
195 -  
196 -# def article  
197 -# Article.find_by_id data[:article_id]  
198 -# end  
199 -  
200 -# def article= value  
201 -# data[:article_id] = value.id  
202 -# end  
203 -  
204 -# def name  
205 -# data[:name].blank? ? (article ? article.name : _("Article removed.")) : data[:name]  
206 -# end  
207 -#  
208 -# def name= value  
209 -# data[:name] = value  
210 -# end  
211 -  
212 -# def article_parent  
213 -# Article.find_by_id article_parent_id.to_i  
214 -# end  
215 -#  
216 -# def article_parent= value  
217 -# self.article_parent_id = value.id  
218 -# end  
219 -#  
220 -# def abstract= value  
221 -# data[:abstract] = value  
222 -# end  
223 -#  
224 -# def abstract  
225 -# data[:abstract].blank? ? (article ? article.abstract : '') : data[:abstract]  
226 -# end  
227 -#  
228 -# def body= value  
229 -# data[:body] = value  
230 -# end  
231 -#  
232 -# def body  
233 -# data[:body].blank? ? (article ? article.body : "") : data[:body]  
234 -# end  
235 -#  
236 -# def icon  
237 -# result = {:type => :defined_image, :src => '/images/icons-app/article-minor.png', :name => name}  
238 -# result.merge({:url => article.url}) if article  
239 -# return result  
240 -# end  
241 -  
242 -# def linked_subject  
243 -#raise article.inspect  
244 -# {:text => name, :url => article.url} if article  
245 -# end  
246 -  
247 def accept_details 188 def accept_details
248 true 189 true
249 end 190 end