Commit 758a2a3b4da548d320c19f019dc69c8a797c4e10

Authored by Thiago Ribeiro
Committed by Gabriel Silva
1 parent ca619669

Fix incorret url in email

Conflicts:
	app/models/add_member.rb
Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
app/models/add_member.rb
... ... @@ -13,6 +13,8 @@ class AddMember < Task
13 13  
14 14 settings_items :roles, type: Array
15 15  
  16 + include Rails.application.routes.url_helpers
  17 +
16 18 after_create do |task|
17 19 remove_from_suggestion_list(task)
18 20 end
... ... @@ -77,7 +79,7 @@ class AddMember < Task
77 79  
78 80 def task_cancelled_message
79 81 _("Your request to enter community \"%{target} with the profile \"%{requestor}\" was not accepted. Please contact any profile admin from %{url} for more information. The following explanation was given: \n\n\"%{explanation}\"") %
80   - {:target => self.target.name, :url => self.target.url,
  82 + {:target => self.target.name, :url => url_for(self.target.url),
81 83 :requestor => self.requestor.name,
82 84 :explanation => self.reject_explanation}
83 85 end
... ...