Replace HashWithIndifferentAccess, it is now deprecated
This commit is contained in:
parent
d0b634852b
commit
ee9a299df6
3 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ module Workers
|
|||
def perform(user_id, object_class_name, object_id, opts)
|
||||
user = User.find(user_id)
|
||||
object = object_class_name.constantize.find(object_id)
|
||||
opts = HashWithIndifferentAccess.new(opts)
|
||||
opts = ActiveSupport::HashWithIndifferentAccess.new(opts)
|
||||
|
||||
Diaspora::Federation::Dispatcher.build(user, object, opts).dispatch
|
||||
rescue ActiveRecord::RecordNotFound # The target got deleted before the job was run
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ module Workers
|
|||
user = User.find(user_id)
|
||||
subscribers = Person.where(id: recipient_ids)
|
||||
object = retraction_class.constantize.new(retraction_data.deep_symbolize_keys, subscribers)
|
||||
opts = HashWithIndifferentAccess.new(opts)
|
||||
opts = ActiveSupport::HashWithIndifferentAccess.new(opts)
|
||||
|
||||
Diaspora::Federation::Dispatcher.build(user, object, opts).dispatch
|
||||
end
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ module Workers
|
|||
|
||||
def perform(service_id, opts)
|
||||
service = Service.find_by_id(service_id)
|
||||
opts = HashWithIndifferentAccess.new(opts)
|
||||
opts = ActiveSupport::HashWithIndifferentAccess.new(opts)
|
||||
service.delete_from_service(opts)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue