Class: ActiveRecord::Relation
- Inherits:
-
Object
- Object
- ActiveRecord::Relation
- Defined in:
- lib/rails_or.rb
Instance Method Summary collapse
Instance Method Details
#or(other) ⇒ Object
8 9 10 11 |
# File 'lib/rails_or.rb', line 8 def or(other) other = self.except(:where).where(other) if other.class == Hash return rails5_or(other) end |
#rails5_or ⇒ Object
7 |
# File 'lib/rails_or.rb', line 7 alias rails5_or or |