andrba/hungryform

View on GitHub
lib/hungryform.rb

Summary

Maintainability
A
0 mins
Test Coverage
module HungryForm
  class << self
    attr_writer :configuration

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end

    def reset_config
      @configuration = Configuration.new
    end
  end
end

require 'json'
require 'active_support/core_ext/string/inflections'
require 'active_support/core_ext/class/attribute'
require 'active_support/core_ext/object'
require 'hungryform/version'
require 'hungryform/form'
require 'hungryform/exceptions'
require 'hungryform/resolver'
require 'hungryform/configuration'
require 'hungryform/validator'
require 'hungryform/elements'