diff options
author | francis <francis> | 2009-02-12 19:50:56 +0000 |
---|---|---|
committer | francis <francis> | 2009-02-12 19:50:56 +0000 |
commit | 9d9aa440c528693a197bc5391f3a10a871952ddd (patch) | |
tree | 272beb55f9245968f7dd1a552d80f63e4a36fd97 /app/helpers/link_to_helper.rb | |
parent | ec1e7a17a24c473aa2f5c74e1ef3d89651695f3e (diff) |
Give a bit more privacy about join data
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 |