module ActiveHouse::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/active_house/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/active_house/querying/except.rb, line 20
def except!(*keys)
  values.merge! initial_values.slice(*keys)
  self
end