Project

General

Profile

Defect #5817 ยป query.rb.diff

Yuki Kita, 2010-07-05 15:12

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
    (1-1/1)