be careful with nested namespace'd controllers in our sample plugin

pull/77/head
Philipp Tessenow 12 years ago
parent b94a9e071c
commit 150585e09f
  1. 2
      extra/sample_plugin/app/models/meeting.rb
  2. 2
      extra/sample_plugin/init.rb

@ -18,6 +18,6 @@ class Meeting < ActiveRecord::Base
acts_as_journalized :event_title => Proc.new {|o| "#{o.scheduled_on} Meeting"},
:event_datetime => :scheduled_on,
:event_author => nil,
:event_url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}}
:event_url => Proc.new {|o| {:controller => '/meetings', :action => 'show', :id => o.id}}
:activity_timestamp => 'scheduled_on'
end

@ -37,7 +37,7 @@ Redmine::Plugin.register :sample_plugin do
end
# A new item is added to the project menu
menu :project_menu, :sample_plugin, { :controller => 'example', :action => 'say_hello' }, :caption => 'Sample'
menu :project_menu, :sample_plugin, { :controller => '/example', :action => 'say_hello' }, :caption => 'Sample'
# Meetings are added to the activity view
activity_provider :meetings

Loading…
Cancel
Save