Sha256: 89816cc9110fdcd7c54848976f04ee728391a3cf34b50f5ed816e24c68e5ace7
Contents?: true
Size: 828 Bytes
Versions: 4
Compression:
Stored size: 828 Bytes
Contents
class FormsExtension < Radiant::Extension version '2.0' description 'Radiant Form extension. Site wide, useful form management' url 'http://github.com/squaretalent/radiant-forms-extension' extension_config do |config| end def activate # View Hooks unless defined? admin.form Radiant::AdminUI.send :include, Forms::Interface::Forms admin.form = Radiant::AdminUI.load_default_form_regions end # Model Includes Page.send :include, Forms::Tags::Core, Forms::Models::Page # Controller Includes ApplicationController.send :include, Forms::Controllers::ApplicationController SiteController.send :include, Forms::Controllers::SiteController tab 'Design' do add_item 'Forms', '/admin/forms', :after => 'Snippets' end end end
Version data entries
4 entries across 4 versions & 1 rubygems