Replace HashWithIndifferentAccess, it is now deprecated

This commit is contained in:
Benjamin Neff 2017-08-05 22:09:44 +02:00
parent d0b634852b
commit ee9a299df6
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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