From 42586bb546042685e2024a511d33da035c6d3d14 Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 15 Aug 2020 21:41:45 +0800 Subject: [PATCH] fix error --- app/models/bulletin.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/bulletin.rb b/app/models/bulletin.rb index 823b9fd..df1a510 100644 --- a/app/models/bulletin.rb +++ b/app/models/bulletin.rb @@ -68,7 +68,9 @@ class Bulletin before_create :set_expire before_save :check_limit - + def to_calendar_param + self.to_param + end def calendar_type CalendarType.where(:category_id.in => self.calendar_type_id) end