app/controllers/schedules_controller.rb
# find article schedule during dates(range, db_format)
find article schedule during dates(range, db_format)
find article schedule during dates ( range db_format )
def article_schedule(date_cond)
    schedule_ids = schedule_ids_during(date_cond, @current_user)
    unless @other_user.blank?
      other_schedule_ids = schedule_ids_during(date_cond, @other_user)
      schedule_ids = (schedule_ids.to_set & other_schedule_ids.to_set).to_a
    end
    schedule_ids.blank? and return [] 
    Article.find schedule_ids,
                        :select => Article_Schedule_Item,
                        :scope  => ":self >> thread:ArticleThread",
                        :conditions=> forum_cond,
                        :group => "articles.id"
  end
def article_schedule ( date_cond ) schedule_ids = schedule_ids_during ( date_cond , @current_user ) unless @other_user . blank? other_schedule_ids = schedule_ids_during ( date_cond , @other_user ) schedule_ids = ( schedule_ids . to_set & other_schedule_ids . to_set ) . to_a end schedule_ids . blank? and return [ ] Article . find schedule_ids , :select => Article_Schedule_Item , :scope => ":self >> thread:ArticleThread" , :conditions => forum_cond , :group => "articles.id" end
find article schedule during dates(range, db_format)
find article schedule during dates ( range db_format )
# current_user's schedules #    return [] if schedule_ids.blank?
date_cond
<not_specific>