lib/shutl/resource/configuration.rb in shutl_resource-0.10.5 vs lib/shutl/resource/configuration.rb in shutl_resource-0.10.6
- old
+ new
@@ -1,17 +1,25 @@
require 'logger'
module Shutl::Resource
-
class << self
- attr_writer :raise_exceptions_on_validation
+ attr_writer :raise_exceptions_on_validation,
+ :raise_exceptions_on_no_quotes_generated
def raise_exceptions_on_validation
if @raise_exceptions_on_validation.nil?
@raise_exceptions_on_validation = false
end
@raise_exceptions_on_validation
+ end
+
+ def raise_exceptions_on_no_quotes_generated
+ if @raise_exceptions_on_no_quotes_generated.nil?
+ @raise_exceptions_on_no_quotes_generated = true
+ end
+
+ @raise_exceptions_on_no_quotes_generated
end
end
def configure(*args, &block)
Configuration.configure(*args, &block)