0.0
No commit activity in last 3 years
No release in over 3 years
This plugin allows you to keep your copyright year up-to-date.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

YearAfterYear

This plugin allows you to keep your copyright year up-to-date.

Example

You can render the current year in your ERb views like so:

<%= current_year -%>

If you want to provide a year range, you can use year_range and provide the year that you started.

Example: With the assumption that the current year was 2008

<%= current_year_range(2005) -%>     				# => 2005-2008
<%= current_year_range(2005, '&mdash;') -%> # => 2005&mdash;2008
<%= current_year_range(2008) -%>     				# => 2008 (just returns current year)

Source

You can access the code here:

Feature Requests / Bugs

Gem

The original repository at http://github.com/robbyrussell/year_after_year was designed to be a Rails plugin. The plugin system has largely been deprecated in favor of using gems, so the fork at http://github.com/phlipper/year_after_year has been updated to build the plugin as a gem instead.

Copyright

Copyright (c) 2008 Robby Russell, released under the MIT license