Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 711 Bytes
require_dependency 'application_controller'
# require File.dirname(__FILE__) + '/lib/geometry'
# require 'tempfile'
class PageAttachmentsExtension < Radiant::Extension
version "1.0"
description "Adds page-attachment-style asset management."
url "http://radiantcms.org"
define_routes do |map|
map.connect 'page_attachments/:action/:id', :controller => 'page_attachments'
end
def activate
# Regular page attachments stuff
Page.class_eval {
include PageAttachmentAssociations
include PageAttachmentTags
}
UserActionObserver.send :include, ObservePageAttachments
Admin::PagesController.send :include, PageAttachmentsInterface
end
def deactivate
end
end