diff options
author | Azul <azul@riseup.net> | 2014-02-04 09:11:00 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-02-04 11:46:57 +0100 |
commit | cbf35664160a57da4c96796e99911b982afacba2 (patch) | |
tree | c0a1be6f8b650e7cbb3323d5d256b29d27cb64bb | |
parent | 87d76281eb374f4c4538fe5bf5b774b73dd5d7e3 (diff) |
only set flags if they are defined
-rw-r--r-- | lib/tapicero.rb | 6 |
1 files 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 |