app/models/motor/api_config.rb in motor-admin-0.4.3 vs app/models/motor/api_config.rb in motor-admin-0.4.4

- old
+ new

@@ -2,11 +2,11 @@ module Motor class ApiConfig < ::Motor::ApplicationRecord encrypts :credentials if defined?(::Motor::EncryptedConfig) - attribute :preferences, default: -> { HashWithIndifferentAccess.new } - attribute :credentials, default: -> { HashWithIndifferentAccess.new } + attribute :preferences, default: -> { ActiveSupport::HashWithIndifferentAccess.new } + attribute :credentials, default: -> { ActiveSupport::HashWithIndifferentAccess.new } serialize :credentials, Motor::HashSerializer serialize :preferences, Motor::HashSerializer has_one :form, dependent: nil, foreign_key: :api_config_name, primary_key: :name, inverse_of: :api_config