Skip to content

Commit 8c630d9

Browse files
Shuhei Kitagawashishirmk
authored andcommitted
Remove unused local variables from #relationships_hash
1 parent 765eaa7 commit 8c630d9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/fast_jsonapi/serialization_core.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ def relationships_hash(record, relationships = nil)
6262

6363
relationships.each_with_object({}) do |(_k, relationship), hash|
6464
name = relationship[:key]
65-
id_method_name = relationship[:id_method_name]
66-
record_type = relationship[:record_type]
6765
empty_case = relationship[:relationship_type] == :has_many ? [] : nil
6866
hash[name] = {
6967
data: ids_hash_from_record_and_relationship(record, relationship) || empty_case

0 commit comments

Comments
 (0)