fix error

This commit is contained in:
chiu committed 2020-08-15 21:41:45 +08:00
1 parent 6c63cae62c
commit 42586bb546
1 file changed
+3 -1
+3 -1
View File
@@ -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