Skip to content

Commit

Permalink
JBuilder's templates have less priority than app templates
Browse files Browse the repository at this point in the history
Closes #271
  • Loading branch information
spastorino committed Jun 4, 2015
1 parent 9b06899 commit 7c1a5f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/rails/scaffold_controller_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c1a5f2

Please sign in to comment.