Skip to content

Instantly share code, notes, and snippets.

@trak3r
Created November 6, 2009 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trak3r/228262 to your computer and use it in GitHub Desktop.
Save trak3r/228262 to your computer and use it in GitHub Desktop.
RAILS_GEM_VERSION = nil
RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '../../..'))
RAILS_ENV = ENV['RAILS_ENV'] || 'development'
if CloudCrowd.node?
require 'rubygems'
require 'activerecord'
ActiveRecord::Base.logger = Logger.new(STDOUT)
require File.expand_path(File.join(File.dirname(__FILE__), '../..', 'environment'))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment