1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Fix for shoulda_macros directory support under vendor/gems under vendor/plugins [#62]

This commit is contained in:
Ryan McGeary 2008-08-31 13:19:09 -04:00
parent 0040ccda1b
commit a40f785724

View file

@ -4,7 +4,7 @@ require 'shoulda'
if defined?(RAILS_ROOT)
# load in the 3rd party macros from vendorized plugins and gems
Dir[File.join(RAILS_ROOT, "vendor", "{plugin,gem}", "*", "shoulda_macros", "*.rb")].each do |macro_file_path|
Dir[File.join(RAILS_ROOT, "vendor", "{plugins,gems}", "*", "shoulda_macros", "*.rb")].each do |macro_file_path|
require macro_file_path
end