Skip to content

Instantly share code, notes, and snippets.

@vijaydev
Created November 30, 2011 18:05
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 vijaydev/1410065 to your computer and use it in GitHub Desktop.
Save vijaydev/1410065 to your computer and use it in GitHub Desktop.
railsrc_path = File.expand_path('~/.railsrc')
if ( ENV['RAILS_ENV'] || defined? Rails ) && File.exist?( railsrc_path )
begin
load railsrc_path
rescue Exception
warn "Could not load: #{ railsrc_path }" # because of $!.message
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment