This commit is contained in:
BoHung Chiu 2020-09-22 23:11:57 +08:00
parent 23785a5e9d
commit 25d1187f99
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class Event
page.nil? ? '' : (page.url+'/'+eval(self.model_class).where(:id=>self.model_id).first.to_calendar_param)
end
def url_to_fronted
self.url.blank? ? (self.model_class.blank? ? '' : self.get_module_url) : self.url
self.url.blank? ? (self.model_class.blank? ? '' : (self.get_module_url rescue '')) : self.url
end
attr_accessor :agenda_start, :agenda_end, :get_agenda_events