Skip to content

Instantly share code, notes, and snippets.

@oliverbarnes
Created May 8, 2014 01:59
Show Gist options
  • Save oliverbarnes/421bfd64713fb871cf7e to your computer and use it in GitHub Desktop.
Save oliverbarnes/421bfd64713fb871cf7e to your computer and use it in GitHub Desktop.
Trying to test loading of libs
ENV["RAILS_ENV"] ||= 'development'
require 'rubygems'
# Set up gems listed in the Gemfile.
require 'bundler/setup' if File.exists?(File.expand_path('../Gemfile', __FILE__))
# Ensure Builder is loaded
require 'active_support/builder' unless defined?(Builder)
require 'active_support'
require 'active_support/dependencies'
include ActiveSupport
Dependencies.autoload_paths += %W{#{Dir.getwd}/app}
Dependencies.autoload_once_paths += %W{#{Dir.getwd}/lib}
defined?(AccountDeleter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment