Updated interest buttons to use ajax instead of a round-trip post

This commit is contained in:
Godwin
2016-06-11 16:45:22 -07:00
parent 0079c21f66
commit 30954e7907
5 changed files with 39 additions and 1 deletions
+1
View File
@@ -94,6 +94,7 @@ class Workshop < ActiveRecord::Base
end
def can_translate?(user, lang)
return false unless user.present?
user.can_translate?(lang, locale) || (can_edit?(user) && lang.to_s != locale.to_s)
end