module PlainModel::Querying::Except
Public Instance Methods
except(*keys)
click to toggle source
Chain method @param keys [Array<Symbol>] values keys that you want to exclude from query @return new instance with applied changes
# File lib/plain_model/querying/except.rb, line 13 def except(*keys) dup.except!(*keys) end
except!(*keys)
click to toggle source
Chain method @param keys [Array<Symbol>] values keys that you want to exclude from query @return new instance with applied changes
# File lib/plain_model/querying/except.rb, line 20 def except!(*keys) self.values = values.except(*keys) self end