Sha256: 9f8ae5cc4cce47c1acaae180aa82db0ade444b6e1ae0dfd8e1ded495bed798c7

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

require 'valle/configuration'

module Valle
  extend Configuration

  # core
  autoload :BoundMapper, 'valle/bound_mapper'
  autoload :BoundsManager, 'valle/bounds_manager'
  autoload :ValidationSetter, 'valle/validation_setter'

  # hooks
  autoload :Hooks, 'valle/hooks'
end

# load Rails/Railtie
begin
  require 'rails'
rescue LoadError
  #do nothing
end

# if not using Railtie, call `Valle::Hooks.init` directly
# TODO [AK 09/12/12] move this block to initializers
if defined? Rails
  require 'valle/railtie'
  require 'valle/engine'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
valle-0.0.1 lib/valle.rb