@@ -308,7 +308,7 @@ def _replace_to_many_links(relationship_type, relationship_key_values, options)
308308 :completed
309309 end
310310
311- def _replace_to_one_link ( relationship_type , relationship_key_value , options )
311+ def _replace_to_one_link ( relationship_type , relationship_key_value , _options )
312312 relationship = self . class . _relationships [ relationship_type ]
313313
314314 send ( "#{ relationship . foreign_key } =" , relationship_key_value )
@@ -317,7 +317,7 @@ def _replace_to_one_link(relationship_type, relationship_key_value, options)
317317 :completed
318318 end
319319
320- def _replace_polymorphic_to_one_link ( relationship_type , key_value , key_type , options )
320+ def _replace_polymorphic_to_one_link ( relationship_type , key_value , key_type , _options )
321321 relationship = self . class . _relationships [ relationship_type . to_sym ]
322322
323323 _model . public_send ( "#{ relationship . foreign_key } =" , key_value )
@@ -360,7 +360,7 @@ def _remove_to_many_link(relationship_type, key, options)
360360 fail JSONAPI ::Exceptions ::RecordNotFound . new ( key )
361361 end
362362
363- def _remove_to_one_link ( relationship_type , options )
363+ def _remove_to_one_link ( relationship_type , _options )
364364 relationship = self . class . _relationships [ relationship_type ]
365365
366366 send ( "#{ relationship . foreign_key } =" , nil )
@@ -852,7 +852,7 @@ def caching?
852852 @caching && !JSONAPI . configuration . resource_cache . nil?
853853 end
854854
855- def attribute_caching_context ( context )
855+ def attribute_caching_context ( _context )
856856 nil
857857 end
858858
0 commit comments