Replaced unreliable ** Dir.glob filter with fixed app/views/ filter

pull/403/merge
Sebastian Schuster 11 years ago
parent 0e4796134c
commit 21f4ba8ead
  1. 2
      lib/redmine/views/my_page/block.rb

@ -27,7 +27,7 @@ module Redmine
ActiveSupport::Deprecation.warn(error)
nil
else
gem_spec.full_gem_path + '/**/my/blocks/_*.{rhtml,erb}'
gem_spec.full_gem_path + '/app/views/my/blocks/_*.{rhtml,erb}'
end
end.compact
).inject({}) do |h,file|

Loading…
Cancel
Save