Skip to content

Commit

Permalink
Introduces to_param
Browse files Browse the repository at this point in the history
We use architecture around 30 times in our routes. Not once by id.
  • Loading branch information
hennevogel committed Sep 21, 2023
1 parent e41741a commit cbc73c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/app/models/architecture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def to_s
name
end

def to_param
name

Check warning on line 57 in src/api/app/models/architecture.rb

View check run for this annotation

Codecov / codecov/patch

src/api/app/models/architecture.rb#L57

Added line #L57 was not covered by tests
end

private

def discard_cache
Expand Down

0 comments on commit cbc73c1

Please sign in to comment.