I need to combine name scope with or operator... Something like:
class Product < ActiveRecord::Base belongs_to :client scope :name_a, where(\"product
For Rails 3:
Person.where( Person.where(name: "John").where(lastname: "Smith").where_values.join(' OR ') )