Skip to content

Commit

Permalink
Refactor show_helper to add the type argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickselby committed Mar 5, 2024
1 parent 260b3bf commit ff8a464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/rspec/scaffold/scaffold_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def banner
self.class.banner
end

def show_helper(resource_name = file_name)
"#{singular_route_name}_url(#{resource_name})"
def show_helper(arg = file_name, type: :url)
super
end
end
end
Expand Down

0 comments on commit ff8a464

Please sign in to comment.