Using double splat operator (#5859)
This commit is contained in:
parent
42bcbd36b7
commit
b21db9bbde
25 changed files with 32 additions and 32 deletions
|
@ -3,7 +3,7 @@
|
|||
class ActivityPub::Activity
|
||||
include JsonLdHelper
|
||||
|
||||
def initialize(json, account, options = {})
|
||||
def initialize(json, account, **options)
|
||||
@json = json
|
||||
@account = account
|
||||
@object = @json['object']
|
||||
|
@ -15,7 +15,7 @@ class ActivityPub::Activity
|
|||
end
|
||||
|
||||
class << self
|
||||
def factory(json, account, options = {})
|
||||
def factory(json, account, **options)
|
||||
@json = json
|
||||
klass&.new(json, account, options)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue