From cbf35664160a57da4c96796e99911b982afacba2 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 4 Feb 2014 09:11:00 +0100 Subject: only set flags if they are defined --- lib/tapicero.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tapicero.rb b/lib/tapicero.rb index e2a8f38..0c7007f 100644 --- a/lib/tapicero.rb +++ b/lib/tapicero.rb @@ -23,8 +23,10 @@ module Tapicero self.logger = CouchRest::Changes::Config.logger # hand flags over to CouchRest::Changes - config.flags = FLAGS - puts "flags: #{FLAGS}" if FLAGS.any? + if defined? FLAGS + config.flags = FLAGS + puts "flags: #{FLAGS}" if FLAGS.any? + end # # Load Tapicero Parts -- cgit v1.2.3