module Ializer

Constants

VERSION

Public Class Methods

config() click to toggle source

Returns the global configuration instance

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

Initialization block is passed a global Config instance that can be used to configure Ializer behavior. E.g., if you want to disable automation DefaultDeSer warnings put the following in an initializer: config/initializers/ializer.rb

Ializer.setup do |config|
   config.warn_on_default = false
end
# File lib/ializer.rb, line 39
def self.setup
  yield config
end