Update ESLint and RuboCop in Code Climate (#12534)
This commit is contained in:
parent
27d5d02925
commit
6be16d02cb
6 changed files with 13 additions and 6 deletions
|
@ -35,6 +35,7 @@ class ActivityPub::Adapter < ActiveModelSerializers::Adapter::Base
|
|||
def serializable_hash(options = nil)
|
||||
named_contexts = {}
|
||||
context_extensions = {}
|
||||
|
||||
options = serialization_options(options)
|
||||
serialized_hash = serializer.serializable_hash(options.merge(named_contexts: named_contexts, context_extensions: context_extensions))
|
||||
serialized_hash = serialized_hash.select { |k, _| options[:fields].include?(k) } if options[:fields]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue