Sha256: 6d4aa4069127f05416eaaecc00f87f0b6a7d453ef8f9b06c1878f9034129caa9
Contents?: true
Size: 641 Bytes
Versions: 4
Compression:
Stored size: 641 Bytes
Contents
# Uncomment this if you reference any of your controllers in activate # require_dependency 'application' class <%= class_name %> < Radiant::Extension version "1.0" description "Describe your extension here" url "http://yourwebsite.com/<%= file_name %>" # define_routes do |map| # map.namespace :admin, :member => { :remove => :get } do |admin| # admin.resources :<%= file_name %> # end # end def activate # admin.tabs.add "<%= extension_name %>", "/admin/<%= file_name %>", :after => "Layouts", :visibility => [:all] end def deactivate # admin.tabs.remove "<%= extension_name %>" end end
Version data entries
4 entries across 4 versions & 1 rubygems