query.rb.diff

Yuki Kita, 2010-07-05 15:12

Download (600 Bytes)

View differences:

app/models/query.rb (working copy)
496 496
  # Returns the versions
497 497
  # Valid options are :conditions
498 498
  def versions(options={})
499
    Version.find :all, :include => :project,
500
                       :conditions => Query.merge_conditions(project_statement, options[:conditions])
499
    @project.shared_versions.all :conditions => options[:conditions]
501 500
  rescue ::ActiveRecord::StatementInvalid => e
502 501
    raise StatementInvalid.new(e.message)
503 502
  end