Sha256: 13f1f9520aa60687aba10bfbacdd23e5c69cd934903c967f3b14a8c5febb1953
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
module PageAttachmentsInterface def self.included(base) base.class_eval { before_filter :add_page_attachment_partials, :only => [:edit, :new] include InstanceMethods } end module InstanceMethods def add_page_attachment_partials @buttons_partials ||= [] @buttons_partials << "attachments_box" include_javascript 'admin/lowpro' include_javascript 'admin/dragdrop' include_javascript 'admin/page_attachments' include_stylesheet 'admin/page_attachments' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-page_attachments-extension-1.0.2 | app/models/page_attachments_interface.rb |