Added localization to workshops, made login persist through subdomains
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user