From 1a145dca25ec1e341eea70337d64f58feebbc958 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Thu, 17 Jun 2010 19:02:07 +0000 Subject: [PATCH] Plugin models and controllers must be unloadable. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3770 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../redmine_plugin_controller/templates/controller.rb.erb | 2 ++ lib/generators/redmine_plugin_model/templates/model.rb.erb | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/generators/redmine_plugin_controller/templates/controller.rb.erb b/lib/generators/redmine_plugin_controller/templates/controller.rb.erb index 615986d9e..2f4c70bd9 100644 --- a/lib/generators/redmine_plugin_controller/templates/controller.rb.erb +++ b/lib/generators/redmine_plugin_controller/templates/controller.rb.erb @@ -1,4 +1,6 @@ class <%= class_name %>Controller < ApplicationController + unloadable + <% actions.each do |action| -%> def <%= action %> diff --git a/lib/generators/redmine_plugin_model/templates/model.rb.erb b/lib/generators/redmine_plugin_model/templates/model.rb.erb index 8d4c89e91..e730492b0 100644 --- a/lib/generators/redmine_plugin_model/templates/model.rb.erb +++ b/lib/generators/redmine_plugin_model/templates/model.rb.erb @@ -1,2 +1,3 @@ class <%= class_name %> < ActiveRecord::Base + unloadable end -- 2.39.5