diff extra/sample_plugin/init.rb @ 1115:433d4f72a19b redmine-2.2

Update to Redmine SVN revision 11137 on 2.2-stable branch
author Chris Cannam
date Mon, 07 Jan 2013 12:01:42 +0000
parents 513646585e45
children
line wrap: on
line diff
--- a/extra/sample_plugin/init.rb	Wed Jun 27 14:54:18 2012 +0100
+++ b/extra/sample_plugin/init.rb	Mon Jan 07 12:01:42 2013 +0000
@@ -1,7 +1,4 @@
-# Redmine sample plugin
-require 'redmine'
-
-RAILS_DEFAULT_LOGGER.info 'Starting Example plugin for RedMine'
+Rails.logger.info 'Starting Example plugin for RedMine'
 
 Redmine::Plugin.register :sample_plugin do
   name 'Example plugin'
@@ -24,7 +21,7 @@
 
   # A new item is added to the project menu
   menu :project_menu, :sample_plugin, { :controller => 'example', :action => 'say_hello' }, :caption => 'Sample'
-  
+
   # Meetings are added to the activity view
   activity_provider :meetings
 end