From: Eric Davis Date: Thu, 17 Jun 2010 19:02:07 +0000 (+0000) Subject: Plugin models and controllers must be unloadable. X-Git-Tag: 1.0.0~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1a145dca25ec1e341eea70337d64f58feebbc958;p=redmine.git Plugin models and controllers must be unloadable. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3770 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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