lib/zen/package/comments/lib/comments.rb in zen-0.3 vs lib/zen/package/comments/lib/comments.rb in zen-0.4

- old
+ new

@@ -5,23 +5,19 @@ p.url = 'http://zen-cms.com/' p.about = 'comments.description' p.root = __DIR__('comments') p.migrations = __DIR__('../migrations') - p.menu( - 'comments.titles.index', + p.menu 'comments.titles.index', '/admin/comments', :permission => :show_comment - ) p.permission :show_comment , 'comments.permissions.show' p.permission :edit_comment , 'comments.permissions.edit' p.permission :delete_comment, 'comments.permissions.delete' end -Zen::Language.load('comments') - require __DIR__('comments/model/comment_status') require __DIR__('comments/model/comment') require __DIR__('comments/controller/comments') require __DIR__('comments/controller/comments_form') require __DIR__('comments/anti_spam') @@ -42,6 +38,10 @@ setting.title = 'comments.labels.defensio_key' setting.description = 'comments.descriptions.defensio_key' setting.name = 'defensio_key' setting.group = 'security' setting.type = 'textbox' +end + +Zen::Event.listen :post_start do + Zen::Language.load('comments') end