Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.633 kb
# Uncomment this if you reference any of your controllers in activate
require_dependency 'application_controller'
class PageAttachmentsXsendfileExtension < Radiant::Extension
version "2.1"
description "Sends page attachments with X-Sendfile"
def activate
Page.class_eval {
include PageAttachmentsXsendfile::PageExtensions
include PageAttachmentsXsendfile::PageAttachmentTagsExtensions
}
PageAttachment.send :include, PageAttachmentsXsendfile::PageAttachmentExtensions
SiteController.send :include, PageAttachmentsXsendfile::SiteControllerExtensions
end
def deactivate
end
end
Jump to Line
Something went wrong with that request. Please try again.