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

Version Path
radiant-0.9.0.rc2 spec/fixtures/example_extension/example_extension.rb
radiant-rc-0.9.0 spec/fixtures/example_extension/example_extension.rb
radiant-0.8.1 spec/fixtures/example_extension/example_extension.rb
radiant-0.7.0 spec/fixtures/example_extension/example_extension.rb
radiant-0.7.1 spec/fixtures/example_extension/example_extension.rb
radiant-0.8.0 spec/fixtures/example_extension/example_extension.rb