From 7c1a5f25603ec1f4e51fba3dbba9db23726a5d69 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Thu, 4 Jun 2015 00:17:09 -0300 Subject: [PATCH] JBuilder's templates have less priority than app templates Closes #271 --- lib/generators/rails/scaffold_controller_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/rails/scaffold_controller_generator.rb b/lib/generators/rails/scaffold_controller_generator.rb index 5005076..92dd251 100644 --- a/lib/generators/rails/scaffold_controller_generator.rb +++ b/lib/generators/rails/scaffold_controller_generator.rb @@ -4,7 +4,7 @@ module Rails module Generators class ScaffoldControllerGenerator - source_paths.unshift File.expand_path('../templates', __FILE__) + source_paths << File.expand_path('../templates', __FILE__) hook_for :jbuilder, default: true end