Sha256: c8e8ba95b44b656336b9535ebb6b8a39b3f3a8326b64f9642a2d0bdcb7f1ba16
Contents?: true
Size: 884 Bytes
Versions: 3
Compression:
Stored size: 884 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/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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radiant-forms-extension-3.2.7 | forms_extension.rb |
radiant-forms-extension-3.2.6 | forms_extension.rb |
radiant-forms-extension-3.2.5 | forms_extension.rb |