Fix ruby warnings about deprecated keyword arguments.
This commit is contained in:
@@ -71,7 +71,7 @@ class PostEvent
|
||||
end
|
||||
|
||||
# XXX can't use hidden_attributes because we don't inherit from ApplicationRecord.
|
||||
def serializable_hash(**options)
|
||||
def serializable_hash(options = {})
|
||||
hash = super
|
||||
hash = hash.except(:creator_id) unless is_creator_visible?
|
||||
hash
|
||||
|
||||
Reference in New Issue
Block a user