# frozen_string_literal: true

module Updateable
  extend ActiveSupport::Concern

  module ClassMethods
    def update_params
      new.attributes.map do |key, value|
        value == [] ? { key.to_sym => value } : key.to_sym
      end
    end
  end
end
