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 |
# File 'lib/rails_or.rb', line 8 def or(*other) return rails5_or(parse_or_parameter(*other)) end |
#or_having(*args) ⇒ Object
41 42 43 |
# File 'lib/rails_or.rb', line 41 def or_having(*args) self.or(klass.having(*args)) end |
#or_not(*args) ⇒ Object
33 34 35 |
# File 'lib/rails_or.rb', line 33 def or_not(*args) raise 'This method is not support in Rails 3' end |
#rails5_or ⇒ Object
7 |
# File 'lib/rails_or.rb', line 7 alias rails5_or or |