Skip to content
Browse files

preventing NoMethodError when running db:migrate

  • Loading branch information...
1 parent 8b60f79 commit c41e251927991d25647c921e1fc1c6d9b9f83fa0 @jmettraux committed Apr 17, 2009
Showing with 14 additions and 7 deletions.
  1. +4 −1 README.txt
  2. +10 −6 config/initializers/participants.rb
View
5 README.txt
@@ -26,7 +26,10 @@ This sequence of commands will install ruote-web2 in your current directory (und
git clone git://github.com/jmettraux/ruote-web2.git
cd ruote-web2
- rake submodule:update
+
+ git submodule init
+ git submodule update
+
sudo rake gems:install
rake ruote:install
View
16 config/initializers/participants.rb
@@ -1,9 +1,13 @@
-# This is a test participant
-#
-# Feel free to comment it out / erase it
-#
-RuotePlugin.ruote_engine.register_participant 'herr_murphy' do |workitem|
- raise "dead beef !"
+if RuotePlugin.ruote_engine
+ # only enter this block if the engine is running
+
+ # This is a test participant
+ #
+ # Feel free to comment it out / erase it
+ #
+ RuotePlugin.ruote_engine.register_participant 'herr_murphy' do |workitem|
+ raise "dead beef !"
+ end
end

0 comments on commit c41e251

Please sign in to comment.
Something went wrong with that request. Please try again.