Sha256: 0330ca0ae5f792dc5d50d17045b485133745c81a8b1ca73164b2a51611a32d74
Contents?: true
Size: 674 Bytes
Versions: 6
Compression:
Stored size: 674 Bytes
Contents
# Uncomment this if you reference any of your controllers in activate # require_dependency 'application_controller' require 'radiant-archive-extension/version' class ArchiveExtension < Radiant::Extension version RadiantArchiveExtension::VERSION description "Provides page types for news or blog archives." url "http://radiantcms.org/" def activate # allow bootstrap if Page.table_exists? Page.class_eval do def allowed_children_with_archive allowed_children_without_archive.reject { |p| p.name =~ /Archive(Day|Month|Year)IndexPage/ } end alias_method_chain :allowed_children, :archive end end end end
Version data entries
6 entries across 6 versions & 2 rubygems