Added localization to workshops, made login persist through subdomains

This commit is contained in:
Godwin
2015-09-14 21:16:22 -07:00
parent a63b5e1dc2
commit 01d8679c9d
73 changed files with 1840 additions and 187 deletions
+6
View File
@@ -1,4 +1,6 @@
class Workshop < ActiveRecord::Base
translates :info, :title
belongs_to :conference
has_many :workshop_facilitators, :dependent => :destroy
@@ -48,6 +50,10 @@ class Workshop < ActiveRecord::Base
workshops ? workshops.size : 0
end
def can_translate?(user)
user.can_translate? || can_edit?(user)
end
private
def make_slug
if !self.slug