SyntaxFix
Write A Post
Hire A Developer
Questions
Rails 5 comes with an or method. (link to documentation)
or
This method accepts an ActiveRecord::Relation object. eg:
ActiveRecord::Relation
User.where(first_name: 'James').or(User.where(last_name: 'Scott'))