Module: ActiveRecord::Blockwhere::ArelNodeOperations

Defined in:
lib/active_record/blockwhere/arel_node_operations.rb

Instance Method Summary collapse

Instance Method Details

#!Object



12
13
14
# File 'lib/active_record/blockwhere/arel_node_operations.rb', line 12

def !
  self.not
end

#&(other) ⇒ Object



4
5
6
# File 'lib/active_record/blockwhere/arel_node_operations.rb', line 4

def &(other)
  self.and(other)
end

#empty?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/active_record/blockwhere/arel_node_operations.rb', line 16

def empty?
  false
end

#|(other) ⇒ Object



8
9
10
# File 'lib/active_record/blockwhere/arel_node_operations.rb', line 8

def |(other)
  self.or(other)
end