Project

General

Profile

Defect #5817 ยป query.rb.diff

Yuki Kita, 2010-07-05 15:12

View differences:

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