Hi, I have a model:
class Shirt < ActiveRecord::Base
named_scope :red, :conditions => { :color => 'red' }
named_scope :blue, :conditions => { :color => 'blue' }
named_scope :xl, :conditions => { :size => 'xl' }
end
I forgot, how to easy add named scope to existing anonymous scope:
scope = Shirt.scoped({})
#and how to add ie. :red to scope?