diff --git a/app/models/event.rb b/app/models/event.rb index 79e1d42..5149306 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -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