Skip to content
Browse files

Update tabs for Radiant 0.9

  • Loading branch information...
1 parent a8854c4 commit 65c332dcff69261dd53a6defd56997da5f634803 @davec davec committed
Showing with 3 additions and 5 deletions.
  1. +3 −5 polls_extension.rb
View
8 polls_extension.rb
@@ -5,7 +5,9 @@ class PollsExtension < Radiant::Extension
def activate
require_dependency 'application_controller'
- admin.tabs.add 'Polls', '/admin/polls', :after => 'Layouts', :visibility => [:all]
+ tab 'Content' do
+ add_item 'Polls', '/admin/polls', :after => 'Pages'
+ end
if Radiant::Config.table_exists?
Radiant::Config['paginate.url_route'] = '' unless Radiant::Config['paginate.url_route']
PollsExtension.const_set('UrlCache', Radiant::Config['paginate.url_route'])
@@ -16,8 +18,4 @@ def activate
Page.send :include, ActionView::Helpers::TagHelper # Required for pagination
end
- def deactivate
- # Not used
- end
-
end

0 comments on commit 65c332d

Please sign in to comment.
Something went wrong with that request. Please try again.