module SchemaValidations

Constants

VERSION

Public Class Methods

config() click to toggle source

Returns the global configuration, i.e., the singleton instance of Config

# File lib/schema_validations.rb, line 97
def self.config
  @config ||= Config.new
end
setup() { |config| ... } click to toggle source

Initialization block is passed a global Config instance that can be used to configure SchemaValidations behavior. E.g., if you want to disable automation creation validations put the following in config/initializers/schema_validations.rb :

SchemaValidations.setup do |config|
   config.auto_create = false
end
# File lib/schema_validations.rb, line 110
def self.setup # :yields: config
  yield config
end