# -*- encoding : utf-8 -*- # built-ins # require 'enumerator' require 'set' require 'fileutils' require 'cgi' require 'tmpdir' require 'yaml' require 'securerandom' require 'json' # require_relative 'dao/_lib.rb' # gems # begin require 'rubygems' rescue LoadError nil end Dao.dependencies.each do |lib, dependency| gem(*dependency) if defined?(gem) require(lib) end # rails frameworks # %w[ action_controller active_support active_model ].each do |framework| begin require "#{ framework }/railtie" rescue LoadError begin require "#{ framework }" rescue LoadError raise end end end # dao libs # Dao.load %w[ blankslate.rb coerce.rb wrap.rb instance_exec.rb extractor.rb exceptions.rb support.rb slug.rb stdext.rb name.rb status.rb path_map.rb errors2html.rb errors.rb messages.rb form.rb validations.rb data.rb result.rb params.rb mode.rb route.rb path.rb endpoint.rb api.rb db.rb rails.rb active_record.rb mongo_mapper.rb conducer.rb upload.rb ]