]> source.dussan.org Git - redmine.git/commitdiff
Plugin models and controllers must be unloadable.
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 17 Jun 2010 19:02:07 +0000 (19:02 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 17 Jun 2010 19:02:07 +0000 (19:02 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3770 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/generators/redmine_plugin_controller/templates/controller.rb.erb
lib/generators/redmine_plugin_model/templates/model.rb.erb

index 615986d9ed351012062219555470aaa3486d33d4..2f4c70bd97ed6a34d6fcac6ee5b98274b0920528 100644 (file)
@@ -1,4 +1,6 @@
 class <%= class_name %>Controller < ApplicationController
+  unloadable
+
 <% actions.each do |action| -%>
 
   def <%= action %>
index 8d4c89e9120e146082463640978d87cf2ac1e07d..e730492b010a3783462f826a85679e0ecab9a56b 100644 (file)
@@ -1,2 +1,3 @@
 class <%= class_name %> < ActiveRecord::Base
+  unloadable
 end