Module Sequel::Plugins::BlacklistSecurity::InstanceMethods
In: lib/sequel/plugins/blacklist_security.rb

Methods

Public Instance methods

Set all values using the entries in the hash, except for the keys given in except. You should probably use set_fields instead of this method, as blacklist approaches to security are a bad idea.

  artist.set_except({name: 'Jim'}, :hometown)
  artist.name # => 'Jim'

[Source]

    # File lib/sequel/plugins/blacklist_security.rb, line 76
76:         def set_except(hash, *except)
77:           set_restricted(hash, ExceptionList.new(except.flatten))
78:         end

Update all values using the entries in the hash, except for the keys given in except. You should probably use update_fields instead of this method, as blacklist approaches to security are a bad idea.

  artist.update_except({name: 'Jim'}, :hometown) # UPDATE artists SET name = 'Jim' WHERE (id = 1)

[Source]

    # File lib/sequel/plugins/blacklist_security.rb, line 85
85:         def update_except(hash, *except)
86:           update_restricted(hash, ExceptionList.new(except.flatten))
87:         end

[Validate]