Is there anyway to combine several named_scope but to use them as OR logic?
named_scope :a, { :conditions => ["posts.type_post == #{PERSONAL}"] }
named_scope :b, { :conditions => ["posts.type_post == #{PUBLIC}"] }
is there a way to use these a and b such that I get posts.type_post == PERSONAL
or posts.type_post == PUBLIC
?
Thank you
I think you will need to create a third scope, combining the conditions: