Sha256: f3b5a7b9404d90e73ba59dd84bca9a6d0336d4179d7336ed61e2ddc4e237ad8c

Contents?: true

Size: 541 Bytes

Versions: 7

Compression:

Stored size: 541 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://example.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

7 entries across 7 versions & 1 rubygems

Version Path
radiant-1.1.0.beta spec/fixtures/example_extension/example_extension.rb
radiant-1.0.1 spec/fixtures/example_extension/example_extension.rb
radiant-1.1.0.alpha spec/fixtures/example_extension/example_extension.rb
radiant-1.0.0 spec/fixtures/example_extension/example_extension.rb
radiant-1.0.0.rc5 spec/fixtures/example_extension/example_extension.rb
radiant-1.0.0.rc4 spec/fixtures/example_extension/example_extension.rb
radiant-1.0.0.rc3 spec/fixtures/example_extension/example_extension.rb