Skip to content

Commit ff8a464

Browse files
committed
Refactor show_helper to add the type argument.
1 parent 260b3bf commit ff8a464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/generators/rspec/scaffold/scaffold_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def banner
128128
self.class.banner
129129
end
130130

131-
def show_helper(resource_name = file_name)
132-
"#{singular_route_name}_url(#{resource_name})"
131+
def show_helper(arg = file_name, type: :url)
132+
super
133133
end
134134
end
135135
end

0 commit comments

Comments
 (0)