Skip to content

Instantly share code, notes, and snippets.

@j-manu
Created November 30, 2011 18:14
Show Gist options
  • Save j-manu/1410103 to your computer and use it in GitHub Desktop.
Save j-manu/1410103 to your computer and use it in GitHub Desktop.
def l(filename)
if rails?(2)
load RAILS_ROOT + '/tmp/' + "#{filename}.rb"
else
load Rails.root.join("tmp/#{filename}.rb")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment