reklama in development env
I tried to test this plugin (as others like google ads, project sidebar, ... ) in redmine 1.2.0 development environemnt
I get this error:
ArgumentError in AdvertisementsController#new
A copy of ApplicationController has been removed from the module tree but is still active!
-- follow trace details, see attached file
I got a similar error also for other plugins, so I decided to not test them in production env
Suggestions are welcome
#3 Updated by Andriy Lesyuk over 9 years ago
#4 Updated by Andriy Lesyuk about 9 years ago
- Status changed from Open to In Progress
- Assignee set to Andriy Lesyuk
- % Done changed from 0 to 50
Tested the plugin under Redmine 1.2.x (current stable)... Works fine!
The bug in development environment is not the plugin’s bug but Rails’.
Going to close this issue unless you provide another info... Thanks!
#6 Updated by Andriy Lesyuk about 9 years ago
I guess you use Rails 2.3.3?.. I so you can update it.
You can also apply patch
You can also try adding
class Advertisement < ActiveRecord::Base unloadable # <-------------------- belongs_to :author, :class_name => 'User', :foreign_key => :author_id belongs_to :project, :class_name => 'Project', :foreign_key => :not_for has_many :keywords, :dependent => :delete_all
class Keyword < ActiveRecord::Base unloadable # <-------------------- belongs_to :advertisement, :class_name => 'Advertisement', :foreign_key => :advertisement_id
#10 Updated by Pierluigi Soana about 9 years ago
I tried very quickly in production env, and it works (and it works well: you made a very good job).
My main observation is that the tool will be more helpful if a advertisement could be global or enabled on a per-project base: instead of non-enabling a single project, it’d better to mark all allowed projects
(or all projects)
This comes from the way we are using redmine, where different work groups work in different project spaces, with some people accessing only public spaces: not all could be interested into all advertisement.