lib/valle.rb in valle-0.0.1 vs lib/valle.rb in valle-0.0.2

- old
+ new

@@ -2,26 +2,23 @@ module Valle extend Configuration # core - autoload :BoundMapper, 'valle/bound_mapper' autoload :BoundsManager, 'valle/bounds_manager' autoload :ValidationSetter, 'valle/validation_setter' + # extensions + module AbstractAdapter + autoload :ColumnWrapper, 'valle/abstract_adapter/column_wrapper' + autoload :AbstractColumn, 'valle/abstract_adapter/abstract_column' + autoload :ByteLimitedColumn, 'valle/abstract_adapter/byte_limited_column' + autoload :CharacterLimitedColumn, 'valle/abstract_adapter/character_limited_column' + autoload :UnlimitedColumn, 'valle/abstract_adapter/unlimited_column' + end + # 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 +## if not using Railtie, call `Valle::Hooks.init` directly +require 'valle/railtie' if defined? Rails