fix error

This commit is contained in:
chiu 2020-08-15 21:41:45 +08:00
parent 6c63cae62c
commit 42586bb546
1 changed files with 3 additions and 1 deletions

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