Module: ActiveRecord::Blockwhere::ArelNodeOperations

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

Instance Method Summary collapse

Instance Method Details

#!Object



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

def !
  self.not
end

#&(other) ⇒ Object



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

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

#empty?Boolean

Returns:

  • (Boolean)


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

def empty?
  false
end

#|(other) ⇒ Object



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

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