aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-11 23:02:05 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-11 23:06:53 -0500
commitfc6ab69777af21db3afb45de8ae08ffc316e69e9 (patch)
tree05f98a148cdc90728db5567d4b925eac1c192fcf /activesupport/lib/active_support/core_ext/string
parent7dba51288fa2926e65afcc1022491a0f4e3c4d5c (diff)
downloadrails-fc6ab69777af21db3afb45de8ae08ffc316e69e9.tar.gz
rails-fc6ab69777af21db3afb45de8ae08ffc316e69e9.tar.bz2
rails-fc6ab69777af21db3afb45de8ae08ffc316e69e9.zip
removing trailing spaces
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string')
-rw-r--r--activesupport/lib/active_support/core_ext/string/conversions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/conversions.rb b/activesupport/lib/active_support/core_ext/string/conversions.rb
index 050eea33ee..022b376aec 100644
--- a/activesupport/lib/active_support/core_ext/string/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/string/conversions.rb
@@ -17,9 +17,9 @@ class String
# Converts a string to a Date value.
#
- # "1-1-2012".to_date #=> Sun, 01 Jan 2012
- # "01/01/2012".to_date #=> Sun, 01 Jan 2012
- # "2012-12-13".to_date #=> Thu, 13 Dec 2012
+ # "1-1-2012".to_date #=> Sun, 01 Jan 2012
+ # "01/01/2012".to_date #=> Sun, 01 Jan 2012
+ # "2012-12-13".to_date #=> Thu, 13 Dec 2012
# "12/13/2012".to_date #=> ArgumentError: invalid date
def to_date
unless blank?