public
Description: Repository for improving Rails documentation
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/lifo/doc-rails.git
Search Repo:
Documenting Date.today and Date.yesterday with copy from #10375 to clarify 
that
they do not return strungs. Closes #10375 [chuyeow, kampers]
Jack Danger Canty (author)
Thu Mar 27 10:20:10 -0700 2008
commit  f1b8e8100868a781e73092086d1d86b0c877ba3a
tree    0a34897ef326bfbd0087afef4354333f7385fc46
parent  4b8a991ee0cbefe17debe1cf387b717f90a70b3d
...
16
17
18
19
 
20
21
22
23
24
 
25
26
27
...
16
17
18
 
19
20
21
22
23
 
24
25
26
27
0
@@ -16,12 +16,12 @@
0
         end
0
 
0
         module ClassMethods
0
- # Finds yesterday's date, in the format similar to: Mon, 17 Mar 2008
0
+ # Returns a new Date representing the date 1 day ago (i.e. yesterday's date).
0
           def yesterday
0
             ::Date.today.yesterday
0
           end
0
           
0
- # Finds tommorrow's date, in the format similar to: Tue, 18 Mar 2008
0
+ # Returns a new Date representing the date 1 day after today (i.e. tomorrow's date).
0
           def tomorrow
0
             ::Date.today.tomorrow
0
           end

Comments

    No one has commented yet.