Skip to content

Commit

Permalink
No memoization for spina parts (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bramjetten authored Feb 12, 2023
1 parent 1d6c411 commit 90a1edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spina/attr_json_spina_parts_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def model_types
end

def spina_parts_lookup
@spina_parts_lookup ||= Spina::PARTS.map(&:to_type).map do |type|
@spina_parts_lookup = Spina::PARTS.map(&:to_type).map do |type|
[type.model.name, type]
end.to_h
end
Expand Down

0 comments on commit 90a1edb

Please sign in to comment.