module <

Public Class Methods

initialize!() click to toggle source
# File lib/templates/application.rb, line 23
def self.initialize!
  settings_file = File.expand_path('../config/settings.yml', __FILE__)

  if File.exist? settings_file
    YAML::load(open(settings_file))[self.environment.to_s]
  else
    raise Errno::ENOENT
  end
end
require_autoload_paths(paths) click to toggle source
# File lib/templates/application.rb, line 15
def self.require_autoload_paths(paths)
  paths.each do |path|
    Dir[File.join(path, "*.rb")].each do |file|
      require file
    end
  end
end