app/models/ecm/courses/course_date.rb in ecm_courses-0.0.1 vs app/models/ecm/courses/course_date.rb in ecm_courses-0.0.2.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 + 1.day)))
+ where(:start_at => (date.beginning_of_month..date.end_of_month))
end
# protected methods
protected
def set_defaults