Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.598 kb
# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'
class ArchiveByQuarterExtension < Radiant::Extension
version "1.0"
description "Extends the core Archive extension to add Quarter archives"
url "http://github.com/tricycle/radiant-archive-by-quarter-extension"
def activate
[Date,DateTime,Time].each do |klass|
klass.send :include, QuartersExpansionForDateStrings
end
ArchiveFinder; ArchivePage
ArchiveFinder.send :extend, ArchiveQuarterFinder
ArchivePage.send :include, ArchivePageQuarterFinder
end
end
Jump to Line
Something went wrong with that request. Please try again.