Module: WhereableClause::Disjunction
- Defined in:
- lib/whereable_clause.rb
Instance Method Summary collapse
-
#to_h ⇒ Object
Hash for OR.
Instance Method Details
#to_h ⇒ Object
Hash for OR
12 13 14 15 16 17 18 |
# File 'lib/whereable_clause.rb', line 12 def to_h return conjunction.to_h if opt.empty? { or: [conjunction.to_h] + opt.elements.map { |o| o.conjunction.to_h }, } end |