Permalink
Browse files

Adding initial version of code for year to year plugin...

  • Loading branch information...
robbyrussell committed Mar 25, 2008
1 parent 9c54bed commit 03870bc7fab8125ecda16ad4ad9cc1a79c581a45
Showing with 11 additions and 0 deletions.
  1. +2 −0 init.rb
  2. +9 −0 lib/year_after_year.rb
View
@@ -0,0 +1,2 @@
+require 'year_after_year'
+ActionController::Base.helper PlanetArgon::YearAfterYear
View
@@ -0,0 +1,9 @@
+module PlanetArgon
+ module YearAfterYear
+ # Renders the current year.
+ # Example: 2008
+ def current_year
+ Time.now.strftime('%Y')
+ end
+ end
+end

0 comments on commit 03870bc

Please sign in to comment.