Permalink
Browse files

show end of current month

  • Loading branch information...
1 parent 0e65006 commit 86fe0100b05880f20a8898dd403a001a93d1ec27 @chap committed Sep 5, 2009
Showing with 290 additions and 1 deletion.
  1. +1 −1 app/models/user.rb
  2. BIN design/photo bagel design.pages
  3. +289 −0 mysql/photobagel_production_2009-09-02.sql
View
@@ -26,7 +26,7 @@ def days
else
start = (newest_photo.taken_at - 2.months).beginning_of_month
end
- d = (start..(newest_photo.taken_at)).to_a.map{|x| x}.reverse
+ d = (start..(newest_photo.taken_at.end_of_month)).to_a.map{|x| x}.reverse
end
def months
Binary file not shown.
Oops, something went wrong.

0 comments on commit 86fe010

Please sign in to comment.