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:
parent
0040ccda1b
commit
a40f785724
1 changed files with 1 additions and 1 deletions
2
init.rb
2
init.rb
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue