Sha256: 36cfccbee4eeb7ec55c8a51af5c867e49b8b55d90fad91f19889a6c0a1832862

Contents?: true

Size: 652 Bytes

Versions: 11

Compression:

Stored size: 652 Bytes

Contents

# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application_controller'

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

11 entries across 11 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 lib/generators/extension/templates/extension.rb
radiantcms-couchrest_model-0.2.2 lib/generators/extension/templates/extension.rb
radiantcms-couchrest_model-0.2.1 lib/generators/extension/templates/extension.rb
radiantcms-couchrest_model-0.2 lib/generators/extension/templates/extension.rb
radiantcms-couchrest_model-0.1.9 lib/generators/extension/templates/extension.rb
radiantcms-couchrest_model-0.1.8 lib/generators/extension/templates/extension.rb
radiantcms-couchrest_model-0.1.7 lib/generators/extension/templates/extension.rb
radiantcms-couchrest_model-0.1.6 lib/generators/extension/templates/extension.rb
radiantcms-couchrest_model-0.1.5 lib/generators/extension/templates/extension.rb
radiant-0.8.2 lib/generators/extension/templates/extension.rb
radiant-0.8.1 lib/generators/extension/templates/extension.rb