diff options
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r-- | app/helpers/link_to_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index 4cba2b663..3f649f01d 100644 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -5,7 +5,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: link_to_helper.rb,v 1.49 2008-12-17 13:01:35 francis Exp $ +# $Id: link_to_helper.rb,v 1.50 2009-02-12 19:50:56 francis Exp $ module LinkToHelper @@ -186,6 +186,10 @@ module LinkToHelper return date.strftime("%e %B %Y").strip end + def year_from_date(date) + return date.strftime("%Y").strip + end + end |