Sha256: a3925556c56db5a2b1c5b5ff41b642fbc4376ceeda8ff54541dad7c7ae5006bf
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
class FormsExtension < Radiant::Extension version YAML::load_file(File.join(File.dirname(__FILE__), 'VERSION')) description 'Radiant Form extension. Site wide, useful form management' url 'http://github.com/dirkkelly/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