Skip to content

Instantly share code, notes, and snippets.

@oliverbarnes
Created May 8, 2014 01:57
Show Gist options
  • Save oliverbarnes/8cc30658c44f08652a99 to your computer and use it in GitHub Desktop.
Save oliverbarnes/8cc30658c44f08652a99 to your computer and use it in GitHub Desktop.
trying to test loading of libs
ENV["RAILS_ENV"] ||= 'production'
require 'rubygems'
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__)
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
# Ensure Builder is loaded
require 'active_support/builder' unless defined?(Builder)
require 'rails/all'
module Diaspora
class Application < Rails::Application
config.autoload_paths += %W{#{config.root}/app}
config.autoload_once_paths += %W{#{config.root}/lib}
end
end
Diaspora::Application.initialize!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment