Skip to content

Commit 53f436b

Browse files
author
Lee Richmond
committed
Make generator less strict
1 parent 1b58b50 commit 53f436b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/jsonapi/resource_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def generate_route
117117
code = <<-STR
118118
resources :#{type}
119119
STR
120-
inject_into_file 'config/routes.rb', after: "scope path: '/api' do\n scope path: '/v1' do\n" do
120+
inject_into_file 'config/routes.rb', after: "scope path: '/v1' do\n" do
121121
code
122122
end
123123
end

0 commit comments

Comments
 (0)