app/models/ecm/courses/course_date.rb in ecm_courses-0.0.5.pre vs app/models/ecm/courses/course_date.rb in ecm_courses-0.0.6.pre
- old
+ new
@@ -36,10 +36,10 @@
end
# class methods
def self.for_month(date)
date ||= Time.zone.now.to_date
- where(:start_at => (date.beginning_of_month..date.end_of_month))
+ where(:start_at => (date.beginning_of_month..(date.end_of_month + 1.day)))
end
# protected methods
protected
def set_defaults