Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10747 (closed enhancement: fixed)

Opened 11 months ago

Last modified 11 months ago

[PATCH] Documentation for custom date formats to use in to_formatted_s

Reported by: leethal Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveSupport Version: edge
Severity: normal Keywords: docs
Cc:

Description

Enhances the documentation for to_formatted_s in ActiveSupport::CoreExtensions::DateTime/Time/Date. Also adding a nodoc to self.included calls. First docpatch, and not a native english speaker, corrections are welcome =)

The docs that this patch adds is mostly for to_formatted_s, but as it's also talking about using initializers to merge date formats into the DATE_FORMATS constant, I'd say it makes sense to have this as a general introduction thingie.

Attachments

docpatch_for_to_formatted_s.diff (5.6 kB) - added by leethal on 01/09/08 08:41:45.
docpatch_for_to_formatted_s_2.diff (4.7 kB) - added by leethal on 01/09/08 09:11:04.
Updating the file,typos and corrections

Change History

01/09/08 08:41:45 changed by leethal

  • attachment docpatch_for_to_formatted_s.diff added.

01/09/08 08:46:11 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [8606]) Document date and time to_formatted_s. Closes #10747 [leethal]

01/09/08 09:01:38 changed by leethal

  • status changed from closed to reopened.
  • resolution deleted.

Re-opening, adding some updates (thanks, xaviershay and chuyeow)

01/09/08 09:04:38 changed by bitsweat

(In [8607]) Merge [8606] to stable: document date and time to_formatted_s. References #10747.

01/09/08 09:11:04 changed by leethal

  • attachment docpatch_for_to_formatted_s_2.diff added.

Updating the file,typos and corrections

01/09/08 09:45:59 changed by bitsweat

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [8608]) Simplify to_formatted_s docs. Closes #10747 [Jeremy Kemper]

01/09/08 09:49:15 changed by bitsweat

(In [8609]) Merge [8608] to stable: simplify to_formatted_s docs. References #10747.