lib/cpee/empty_workflow.rb in cpee-1.4.18 vs lib/cpee/empty_workflow.rb in cpee-1.4.20
- old
+ new
@@ -1,19 +1,23 @@
# This file is part of CPEE.
-#
+#
# CPEE is free software: you can redistribute it and/or modify it under the terms
# of the GNU General Public License as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later version.
-#
+#
# CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along with
# CPEE (file COPYING in the main directory). If not, see
# <http://www.gnu.org/licenses/>.
-require 'weel'
+if Module.const_defined?(:CPEE) && CPEE.const_defined?(:DEVELOP) && CPEE::DEVELOP.const_defined?(:WEEL)
+ require File.join(CPEE::DEVELOP::WEEL,'weel')
+else
+ require 'weel'
+end
require ::File.dirname(__FILE__) + '/../../server/handlerwrappers/default'
class EmptyWorkflow < WEEL
handlerwrapper DefaultHandlerWrapper