Sha256: e5ef77cbdb21cf6d7bc6eb9bbdf526c3568ac68b8d9ec5af31491b7d0c26ba62

Contents?: true

Size: 413 Bytes

Versions: 11

Compression:

Stored size: 413 Bytes

Contents

# Allow users of copyable to alter the behavior.

module Copyable

  class Config < Struct.new(:suppress_schema_errors); end

  def self.config
    @@config ||= Config.new
  end

end

if ENV['SUPPRESS_SCHEMA_ERRORS'].nil?
  Copyable.config.suppress_schema_errors = false
else
  Copyable.config.suppress_schema_errors =
   (ENV['SUPPRESS_SCHEMA_ERRORS'] == 'true' ||
    ENV['SUPPRESS_SCHEMA_ERRORS'] == true)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
copyable-0.3.5 lib/copyable/config.rb
copyable-0.3.3 lib/copyable/config.rb
copyable-0.3.2 lib/copyable/config.rb
copyable-0.3.1 lib/copyable/config.rb
copyable-0.3.0 lib/copyable/config.rb
copyable-0.2.0 lib/copyable/config.rb
copyable-0.1.2 lib/copyable/config.rb
copyable-0.1.1 lib/copyable/config.rb
copyable-0.1.0 lib/copyable/config.rb
copyable-0.0.2 lib/copyable/config.rb
copyable-0.0.1 lib/copyable/config.rb