Method: Sequel::Plugins::WhitelistSecurity::InstanceMethods#set_all
- Defined in:
- lib/sequel/plugins/whitelist_security.rb
permalink #set_all(hash) ⇒ Object
Set all values using the entries in the hash, ignoring any setting of allowed_columns in the model.
Artist.set_allowed_columns(:num_albums)
artist.set_all(name: 'Jim')
artist.name # => 'Jim'
67 68 69 |
# File 'lib/sequel/plugins/whitelist_security.rb', line 67 def set_all(hash) set_restricted(hash, :all) end |