Skip to content

Commit 7c1a5f2

Browse files
committed
JBuilder's templates have less priority than app templates
Closes #271
1 parent 9b06899 commit 7c1a5f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/rails/scaffold_controller_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
module Rails
55
module Generators
66
class ScaffoldControllerGenerator
7-
source_paths.unshift File.expand_path('../templates', __FILE__)
7+
source_paths << File.expand_path('../templates', __FILE__)
88

99
hook_for :jbuilder, default: true
1010
end

0 commit comments

Comments
 (0)