lib/twirp_rails/twirp.rb in twirp_rails-0.4.2 vs lib/twirp_rails/twirp.rb in twirp_rails-0.4.3
- old
+ new
@@ -2,10 +2,10 @@
module Twirp
def self.auto_require_twirp_files(twirp_path)
# protoc generates require without path in a _pb files
$LOAD_PATH.unshift(twirp_path) unless $LOAD_PATH.include?(twirp_path)
- Dir.glob(Rails.root.join('lib/twirp/**/*_twirp.rb')).sort.each do |file|
+ Dir.glob(Rails.root.join(twirp_path, '**/*_twirp.rb')).sort.each do |file|
require file
end
end
end
end