diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-06-17 19:02:07 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-06-17 19:02:07 +0000 |
commit | 1a145dca25ec1e341eea70337d64f58feebbc958 (patch) | |
tree | 5d3d526cb23f31bf3dd3e2dcc995ea2f0208de20 /lib | |
parent | 28519714e0dcd97cb61266d69dfdf5909d4acb88 (diff) | |
download | redmine-1a145dca25ec1e341eea70337d64f58feebbc958.tar.gz redmine-1a145dca25ec1e341eea70337d64f58feebbc958.zip |
Plugin models and controllers must be unloadable.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3770 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generators/redmine_plugin_controller/templates/controller.rb.erb | 2 | ||||
-rw-r--r-- | lib/generators/redmine_plugin_model/templates/model.rb.erb | 1 |
2 files changed, 3 insertions, 0 deletions
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 |