lib/scaffolding/transformer.rb in bullet_train-super_scaffolding-1.0.1 vs lib/scaffolding/transformer.rb in bullet_train-super_scaffolding-1.0.2

- old
+ new

@@ -109,10 +109,11 @@ def resolve_template_path(file) # Figure out the actual location of the file. # Originally all the potential source files were in the repository alongside the application. # Now the files could be provided by an included Ruby gem, so we allow those Ruby gems to register their base # path and then we check them in order to see which template we should use. - $super_scaffolding_template_paths.reverse.map do |base_path| + BulletTrain::SuperScaffolding.template_paths.reverse.map do |base_path| + base_path = Pathname.new(base_path) resolved_path = base_path.join(file).to_s File.exists?(resolved_path) ? resolved_path : file end.compact.first end