Skip to content

Instantly share code, notes, and snippets.

@jtrupiano
Forked from croaky/gist:279487
Created January 17, 2010 18:32
Show Gist options
  • Save jtrupiano/279494 to your computer and use it in GitHub Desktop.
Save jtrupiano/279494 to your computer and use it in GitHub Desktop.
if (root = (defined?(Rails.root) && Rails.root) || RAILS_ROOT)
# load in the 3rd party macros from vendorized plugins and gems
Shoulda.autoload_macros root, File.join("vendor", "{plugins,gems}", "*")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment