Defect #5817 ยป query.rb.diff
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 |