Sha256: 508be9dc2ef4f5efcaf2fc92b2146c43723179f21c9c49e3f056cff95051e20d
Contents?: true
Size: 545 Bytes
Versions: 26
Compression:
Stored size: 545 Bytes
Contents
# Uncomment this if you reference any of your controllers in activate # require_dependency 'application' class ExampleExtension < Radiant::Extension version "1.0" description "Describe your extension here" url "http://yourwebsite.com/example" # define_routes do |map| # map.connect 'admin/example/:action', :controller => 'admin/example' # end def activate # admin.tabs.add "Example", "/admin/example", :after => "Layouts", :visibility => [:all] end def deactivate # admin.tabs.remove "Example" end end
Version data entries
26 entries across 26 versions & 4 rubygems