# File lib/dm-core/resource.rb, line 32 def update_attributes(attributes = {}, *allowed) assert_update_clean_only(:update_attributes) warn "#{model}#update_attributes is deprecated, use #{model}#update instead (#{caller[0]})" if allowed.any? warn "specifying allowed in #{model}#update_attributes is deprecated, " \ "use Hash#only to filter the attributes in the caller (#{caller[0]})" attributes = attributes.only(*allowed) end update(attributes) end