Method: Sequel::Plugins::WhitelistSecurity::InstanceMethods#update_all

Defined in:
lib/sequel/plugins/whitelist_security.rb

#update_all(hash) ⇒ Object

Update all values using the entries in the hash, ignoring any setting of allowed_columns in the model.

Artist.set_allowed_columns(:num_albums)
artist.update_all(name: 'Jim') # UPDATE artists SET name = 'Jim' WHERE (id = 1)
[View source]

88
89
90
# File 'lib/sequel/plugins/whitelist_security.rb', line 88

def update_all(hash)
  update_restricted(hash, :all)
end