# File lib/dm-core/resource.rb, line 66
    def update_attributes(attributes = {}, *allowed)
      model      = self.model
      call_stack = caller[0]

      warn "#{model}#update_attributes is deprecated, use #{model}#update instead (#{call_stack})"

      if allowed.any?
        warn "specifying allowed in #{model}#update_attributes is deprecated, " \
          "use Hash#only to filter the attributes in the caller (#{call_stack})"
        attributes = attributes.only(*allowed)
      end

      assert_update_clean_only(:update_attributes)
      update(attributes)
    end